def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'pass_change' result = _common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'power_reset' result = _common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'add_user' result = _common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'get_all_users' result = _common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'boot_order' options['boot_list'] = options['boot_list'].split(',') result = _common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'license_set' result = _common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'set_settings' result = _common.handle(self, *args, **options)
def handle(self, *args, **options): """ Handle command """ options["command"] = "bmc_factory_defaults" result = _common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' if options['force']: options['command'] = 'power_off' else: options['command'] = 'power_off_acpi' result = _common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'firmware_update' if not options['firmware_location']: raise CommandError(_('Firmware location missing. -f needed. See help')) sys.exit(1) if not isfile(options['firmware_location']): raise CommandError(_('Firmware file not found. Check command input')) result = _common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'set_ldap_settings' for s in options.keys(): if s == 'contexts' and options['contexts'] is not None: options['contexts'] = options['contexts'].split(':') if s == 'groupnames' and options['groupnames'] is not None: options['groupnames'] = options['groupnames'].split(':') if s == 'groupprivs' and options['groupprivs'] is not None: options['groupprivs'] = options['groupprivs'].split(':') if s == 'groupsids' and options['groupsids'] is not None: options['groupsids'] = options['groupsids'].split(':') result = _common.handle(self, *args, **options)