Skip to content

Commit

Permalink
Use 1804-style deprovisioning for all versions >= 18.04 (#1483)
Browse files Browse the repository at this point in the history
18.04 changed the method of managing resolv.conf vs. 16.04; the new method involves letting systemd-networkd manage that file. A previous fix corrected waagent behavior for 18.04 but did not do so for subsequent releases. Now that Ubuntu's direction is clear, this commit makes the correction in all versions of Ubuntu from 18.04 onwards. Other distros are unaffected by this bug and by this fix.
  • Loading branch information
jasonzio authored Mar 7, 2019
1 parent 4f7042a commit 3cb14b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurelinuxagent/pa/deprovision/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_deprovision_handler(distro_name=DISTRO_NAME,
if distro_name == "arch":
return ArchDeprovisionHandler()
if distro_name == "ubuntu":
if Version(distro_version) in [Version('18.04')]:
if Version(distro_version) >= Version('18.04'):
return Ubuntu1804DeprovisionHandler()
else:
return UbuntuDeprovisionHandler()
Expand Down

0 comments on commit 3cb14b8

Please sign in to comment.