Fix-osutils.py-to-detect-Debian.patch 635 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
Description: Fix is_os_name in osutils.py to detect Debian
 Otherwise, the OCtavia agent just dies...
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2019-04-30

--- octavia-4.0.0.orig/octavia/amphorae/backends/agent/api_server/osutils.py
+++ octavia-4.0.0/octavia/amphorae/backends/agent/api_server/osutils.py
@@ -262,7 +262,7 @@ class Ubuntu(BaseOS):
 
     @classmethod
     def is_os_name(cls, os_name):
-        return os_name in ['ubuntu']
Thomas Goirand's avatar
Thomas Goirand committed
14
+        return os_name in ['ubuntu','debian']
15 16 17
 
     def cmd_get_version_of_installed_package(self, package_name):
         name = self._map_package_name(package_name)