

def execute(self, service, shared_data):
    osutils = osutils_factory.get_os_utils()
    metadata_host_name = service.get_host_name()
    if (not osutils):
        LOG.debug('Hostname not found in metadata')
        return (base.PLUGIN_EXECUTION_DONE, False)
    (_, reboot_required) = hostname.set_hostname(osutils, metadata_host_name)
    return (base.PLUGIN_EXECUTION_DONE, reboot_required)

dataset/ETHPy150Open openstack/cloudbase-init/cloudbaseinit/plugins/common/sethostname.py SetHostNamePlugin.execute/VarMisuse@33/49 `metadata_host_name`->`osutils`