Esempio n. 1
0
 def _get_os_installer(self):
     installer = adapter_api.OS_INSTALLERS.values()[0]
     os_installer = {}
     os_installer['name'] = health_check_utils.strip_name(
         installer['name'])
     os_installer.update(installer['settings'])
     return os_installer
Esempio n. 2
0
 def _get_package_installer(self):
     package_installer = {}
     installer = adapter_api.PACKAGE_INSTALLERS.values()[0]
     package_installer = {}
     package_installer['name'] = health_check_utils.strip_name(
         installer['name'])
     package_installer.update(installer['settings'])
     return package_installer
Esempio n. 3
0
 def _get_os_installer(self):
     with database.session() as session:
         installer = utils.get_db_object(
             session, models.OSInstaller
         )
         os_installer = {}
         os_installer['name'] = health_check_utils.strip_name(
             installer.name)
         os_installer.update(installer.settings)
     return os_installer
Esempio n. 4
0
 def _get_package_installer(self):
     package_installer = {}
     with database.session() as session:
         installer = session.query(
             models.PackageInstaller
         ).first()
         package_installer = {}
         package_installer['name'] = health_check_utils.strip_name(
             installer.name)
         package_installer.update(installer.settings)
     return package_installer