aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv/deployment/factory.py
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2017-04-05 05:55:25 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-04-05 05:55:25 +0000
commit5731d9dc5838c6b7f499d4469a0034db5942d13b (patch)
tree65842a9dce0eca76a703c11c85ed3a8397bd6430 /opnfv/deployment/factory.py
parent7c2bfe5f9f0e4a9ddde36eac766b1846fa233cd6 (diff)
parent4862069b743b24bfc6478102a2a3872d9178838d (diff)
Merge "Compass Adapter to get deployment information"
Diffstat (limited to 'opnfv/deployment/factory.py')
-rw-r--r--opnfv/deployment/factory.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/opnfv/deployment/factory.py b/opnfv/deployment/factory.py
index 1ccee4e..b8e5c8e 100644
--- a/opnfv/deployment/factory.py
+++ b/opnfv/deployment/factory.py
@@ -9,6 +9,7 @@
from opnfv.deployment.apex import adapter as apex_adapter
+from opnfv.deployment.compass import adapter as compass_adapter
from opnfv.deployment.fuel import adapter as fuel_adapter
from opnfv.utils import opnfv_logger as logger
@@ -40,6 +41,11 @@ class Factory(object):
return fuel_adapter.FuelAdapter(installer_ip=installer_ip,
installer_user=installer_user,
installer_pwd=installer_pwd)
+ elif installer.lower() == "compass":
+ return compass_adapter.CompassAdapter(
+ installer_ip=installer_ip,
+ installer_user=installer_user,
+ installer_pwd=installer_pwd)
else:
raise Exception("Installer adapter is not implemented for "
"the given installer.")