Пример #1
0
 def metadata_software_deployments(self, cnxt, server_id):
     if not server_id:
         raise ValueError(_('server_id must be specified'))
     all_sd = db_api.software_deployment_get_all(cnxt, server_id)
     # sort the configs by config name, to give the list of metadata a
     # deterministic and controllable order.
     all_sd_s = sorted(all_sd, key=lambda sd: sd.config.name)
     result = [api.format_software_config(sd.config) for sd in all_sd_s]
     return result
Пример #2
0
 def metadata_software_deployments(self, cnxt, server_id):
     if not server_id:
         raise ValueError(_('server_id must be specified'))
     all_sd = db_api.software_deployment_get_all(cnxt, server_id)
     # sort the configs by config name, to give the list of metadata a
     # deterministic and controllable order.
     all_sd_s = sorted(all_sd, key=lambda sd: sd.config.name)
     result = [api.format_software_config(sd.config) for sd in all_sd_s]
     return result
Пример #3
0
 def list_software_deployments(self, cnxt, server_id):
     all_sd = db_api.software_deployment_get_all(cnxt, server_id)
     result = [api.format_software_deployment(sd) for sd in all_sd]
     return result
Пример #4
0
 def list_software_deployments(self, cnxt, server_id):
     all_sd = db_api.software_deployment_get_all(cnxt, server_id)
     result = [api.format_software_deployment(sd) for sd in all_sd]
     return result
 def get_all(cls, context, server_id=None):
     return [cls._from_db_object(context, cls(), db_deployment)
             for db_deployment in db_api.software_deployment_get_all(
                 context, server_id)]
Пример #6
0
 def get_all(cls, context, server_id=None):
     return [
         cls._from_db_object(context, cls(), db_deployment)
         for db_deployment in db_api.software_deployment_get_all(
             context, server_id)
     ]
Пример #7
0
 def get_all(cls, context, server_id=None):
     LOG.info(_LI("soumiyajit::  /home/pankaj/python_program/logs/software_deployment.py\Class SoftwareDeploymentget_all "))
     : LOG.info(_LI("soumiyajit::  class SoftwareDeployment(base.VersionedObject, "))
     return [cls._from_db_object(context, cls(), db_deployment)
             for db_deployment in db_api.software_deployment_get_all(
                 context, server_id)]