summaryrefslogtreecommitdiffstats
path: root/modules/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
commit5412a1b30129d25b6f7f7de6c5262e2e3edc699b (patch)
treef1bf92c579d8cec9ce9159d25f56fea3d7cc69ed /modules/opnfv/deployment/factory.py
parentf94e32342342ba129f5cdd769012b1c8f363fe1a (diff)
parent3f71d8c07d2f1539a8d56752773c47556d91ef4d (diff)
Merge "Compass Adapter to get deployment information"
Diffstat (limited to 'modules/opnfv/deployment/factory.py')
-rw-r--r--modules/opnfv/deployment/factory.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/opnfv/deployment/factory.py b/modules/opnfv/deployment/factory.py
index 1ccee4e80..b8e5c8ef4 100644
--- a/modules/opnfv/deployment/factory.py
+++ b/modules/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.")