summaryrefslogtreecommitdiffstats
path: root/modules/opnfv/deployment/factory.py
diff options
context:
space:
mode:
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.")