diff options
Diffstat (limited to 'opnfv/deployment/factory.py')
-rw-r--r-- | opnfv/deployment/factory.py | 6 |
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.") |