diff options
author | Jing Sun <sun.jing22@zte.com.cn> | 2016-12-30 10:23:04 +0800 |
---|---|---|
committer | Jing Sun <sun.jing22@zte.com.cn> | 2017-01-12 08:47:44 +0000 |
commit | d53bc21e5b8eed5fb24a0f994db289e2b50953f1 (patch) | |
tree | dd31f5b097ea6fba936e705c384588b4db76fccf /modules/opnfv/utils | |
parent | 3a8b548460d91072f7a38a6d27c0a90548421fbd (diff) |
Add a new installer daisy adapter to modules directory
Change-Id: I9a46665941f8536f08d27a1c6d7e62f2a50ffbc2
Signed-off-by: Jing Sun <sun.jing22@zte.com.cn>
Diffstat (limited to 'modules/opnfv/utils')
-rw-r--r-- | modules/opnfv/utils/Credentials.py | 8 | ||||
-rw-r--r-- | modules/opnfv/utils/constants.py | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/modules/opnfv/utils/Credentials.py b/modules/opnfv/utils/Credentials.py index 1882692b3..6441b841c 100644 --- a/modules/opnfv/utils/Credentials.py +++ b/modules/opnfv/utils/Credentials.py @@ -47,7 +47,7 @@ class Credentials(object): password) def __check_installer_name(self, installer): - if installer not in ("apex", "compass", "fuel", "joid"): + if installer not in ("apex", "compass", "daisy", "fuel", "joid"): return os.EX_CONFIG else: return os.EX_OK @@ -69,6 +69,10 @@ class Credentials(object): # TODO pass + def __fetch_creds_daisy(self, target_path): + # TODO + pass + def __fetch_creds_fuel(self, target_path): creds_file = '/root/openrc' try: @@ -95,6 +99,8 @@ class Credentials(object): self.__fetch_creds_apex(target_path) elif self.installer == "compass": self.__fetch_creds_compass(target_path) + elif self.installer == "daisy": + self.__fetch_creds_daisy(target_path) elif self.installer == "fuel": self.__fetch_creds_fuel(target_path) elif self.installer == "joid": diff --git a/modules/opnfv/utils/constants.py b/modules/opnfv/utils/constants.py index 29f0d02c5..a69cedda3 100644 --- a/modules/opnfv/utils/constants.py +++ b/modules/opnfv/utils/constants.py @@ -7,7 +7,7 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 -INSTALLERS = ['apex', 'fuel', 'compass', 'joid'] +INSTALLERS = ['apex', 'fuel', 'compass', 'joid', "daisy"] VERSIONS = ['arno', 'brahmaputra', 'colorado', 'danube'] EXIT_OK = 0 |