diff options
Diffstat (limited to 'modules/opnfv/deployment/factory.py')
-rw-r--r-- | modules/opnfv/deployment/factory.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/opnfv/deployment/factory.py b/modules/opnfv/deployment/factory.py index b8e5c8ef4..55fb2e2e3 100644 --- a/modules/opnfv/deployment/factory.py +++ b/modules/opnfv/deployment/factory.py @@ -11,6 +11,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.deployment.OSA import adapter as osa_adapter from opnfv.utils import opnfv_logger as logger logger = logger.Logger(__name__).getLogger() @@ -18,7 +19,7 @@ logger = logger.Logger(__name__).getLogger() class Factory(object): - INSTALLERS = ["fuel", "apex", "compass", "joid", "daisy"] + INSTALLERS = ["fuel", "apex", "compass", "joid", "daisy", "OSA"] def __init__(self): pass @@ -46,6 +47,10 @@ class Factory(object): installer_ip=installer_ip, installer_user=installer_user, installer_pwd=installer_pwd) + elif installer.lower() == "osa": + return osa_adapter.OSAAdapter(installer_ip=installer_ip, + installer_user=installer_user, + pkey_file=pkey_file) else: raise Exception("Installer adapter is not implemented for " "the given installer.") |