~smoser/cloud-init/azure_dhcp

Viewing all changes in revision 1257.

  • Committer: Brent Baude
  • Date: 2016-08-04 20:52:49 UTC
  • Revision ID: bbaude@redhat.com-20160804205249-nrj12h2juptyrenw
Adding in review comments from smoser; reworked the logic around
managing the hook files as they are written.  We now pass in the 
"action" (up/down) and the interface name (eth0/etc) to the
cloud-init dhclient_hook function so we can manage files
on an independant basis.  

If the action is down, we delete the hook file.  Else we write
(or overwrite) it using the atomic_write_json function which 
now lives in its own file.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: