Ejemplo n.º 1
0
 def update(package_name):
     # type: (str) -> None
     """
     Install the specified package
     :param package_name: Name of the package to update
     :type package_name: str
     :return: None
     :rtype: NoneType
     """
     with file_mutex('package_update'):
         SDMUpdateController.update(package_name=package_name)
Ejemplo n.º 2
0
 def execute_update(status):
     """
     This call is required when framework has old code and SDM has been updated (as off 30 Nov 2016)
     Old code tries to initiate update providing a status, while new code no longer requires this status
     :param status: Unused
     :type status: str
     """
     _ = status
     with file_mutex('package_update'):
         SDMUpdateController.update(package_name='alba')
         SDMUpdateController.update(package_name='openvstorage-sdm')
         return {'status': 'done'}
Ejemplo n.º 3
0
 def execute_update(status):
     # type: (str) -> str
     """
     This call is required when framework has old code and SDM has been updated (as off 30 Nov 2016)
     Old code tries to initiate update providing a status, while new code no longer requires this status
     :param status: Unused
     :type status: str
     :return: The status of the ongoing update
     :rtype: str
     """
     _ = status
     with file_mutex('package_update'):
         SDMUpdateController.update(package_name='alba')
         SDMUpdateController.update(package_name='openvstorage-sdm')
         return 'done'
Ejemplo n.º 4
0
 def update(package_name):
     """
     Install the specified package
     """
     with file_mutex('package_update'):
         return SDMUpdateController.update(package_name=package_name)