def _get_managementserver_pkg(module, kwargs): result = None try: with connection_object(module, kwargs) as con: result = managementserver(con, kwargs.get('update_key'), kwargs.get('fixids'), kwargs.get('type')) except Exception as err: module.fail_json(msg="Error retriving managementserver info." + str(err)) return result
def _import_managementserver_pkg(module, kwargs): global __changed__ result = None try: with connection_object(module, kwargs) as con: result = managementserver(con, kwargs.get('subcmd'), kwargs.get('update_key'), kwargs.get('fixids'), kwargs.get('type'), kwargs.get('files'), kwargs.get('jobid')) __changed__ = True except Exception as err: module.fail_json(msg="Error import managementserver ." + str(err)) return result
def _update_managementserver_pkg(module, kwargs): global __changed__ result = None try: with connection_object(module, kwargs) as con: result = managementserver( con, kwargs.get('update_key'), kwargs.get('fixids'), kwargs.get('type'), kwargs.get('lxca_action'), ) __changed__ = True except Exception as err: module.fail_json(msg="Error retriving update managementserver." + str(err)) return result