Esempio n. 1
0
    def main(self, *, args):
        print("deprecated warning: Please use 'load_controller --set_state start'")
        response = load_start_controller(args.controller_manager, args.controller_name)
        if not response.ok:
            return 'Error loading and starting controller, check controller_manager logs'

        print(f'Successfully loaded and started controller {args.controller_name}')
        return 0
 def main(self, *, args):
     response = load_start_controller(args.controller_manager,
                                      args.controller_name)
     if not response.ok:
         print(
             'Error loading and starting controller, check '
             'controller_manager logs',
             file=sys.stderr)
     return not response.ok
 def main(self, *, args):
     response = load_start_controller(args.controller_manager,
                                      args.controller_name)
     return not response.ok
Esempio n. 4
0
 def main(self, *, args):
     print("deprecated warning: Please use either 'load --state' or 'set_state'")
     response = load_start_controller(args.controller_manager, args.controller_name)
     if not response.ok:
         return 'Error loading and starting controller, check controller_manager logs'
     return 'Successfully loaded and started controller {}'.format(args.controller_name)