From 3ce174716c6ddcef0e7ac77fc468d2ada78d884c Mon Sep 17 00:00:00 2001 From: "Jason Zions (MSFT)" Date: Wed, 6 Mar 2019 16:38:23 -0800 Subject: [PATCH] Use 1804-style deprovisioning for all versions >= 18.04 --- azurelinuxagent/pa/deprovision/factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurelinuxagent/pa/deprovision/factory.py b/azurelinuxagent/pa/deprovision/factory.py index 07c26bf781..278e5e2ac3 100644 --- a/azurelinuxagent/pa/deprovision/factory.py +++ b/azurelinuxagent/pa/deprovision/factory.py @@ -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()