~smoser/cloud-init/azure_dhcp

« back to all changes in this revision

Viewing changes to cloudinit/sources/helpers/azure.py

  • Committer: Brent Baude
  • Date: 2016-08-04 12:48:46 UTC
  • Revision ID: bbaude@redhat.com-20160804124846-tt1gybhdqpy8zkim
Rather than having the python executable for obtaining and storing the
dhclient information as its own executable, it is integrated into
cloud-init as a sub-command 'dhclient_hook'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
        LOG.debug("Lease file %s found", lease_file)
283
283
        dhcp_options = WALinuxAgentShim._load_dhclient_json()
284
284
        value = WALinuxAgentShim._get_value_from_dhcpoptions(dhcp_options)
285
 
        LOG.debug("value is {}".format(value))
286
285
        if value is None:
287
286
            # Fallback and check the leases file if unsuccessful
288
287
            LOG.debug("Unable to find endpoint in dhclient logs. "