mprov-ng / mprov_jobserver

The heart and soul of mProv. The mprov jobserver is the background work horse that handles all the heavy lifting.
Apache License 2.0
2 stars 1 forks source link

Error when OS distro has no scripts. #71

Closed biondogs closed 1 year ago

biondogs commented 1 year ago

-- Unit mprov-script-runner.service has begun starting up. Jul 10 10:06:33 devmaster mprov_jobserver[404653]: mProv Job Server Starting. Jul 10 10:06:33 devmaster mprov_jobserver[404653]: mProv Job Server authenticating. Jul 10 10:06:33 devmaster mprov_jobserver[404653]: Warning: No address set in config, attempting autodetection. This may not work right... Jul 10 10:06:33 devmaster mprov_jobserver[404653]: Jobserver Running script-runner... Jul 10 10:06:33 devmaster mprov_jobserver[404653]: http://172.30.1.1/systems/?self Jul 10 10:06:33 devmaster mprov_jobserver[404653]: Exception in thread <class 'mprov_jobserver.plugins.script_runner.script_runner'>: Jul 10 10:06:33 devmaster mprov_jobserver[404653]: Traceback (most recent call last): Jul 10 10:06:33 devmaster mprov_jobserver[404653]: File "/usr/lib64/python3.8/threading.py", line 932, in _bootstrap_inner Jul 10 10:06:33 devmaster mprov_jobserver[404653]: self.run() Jul 10 10:06:33 devmaster mprov_jobserver[404653]: File "/usr/local/lib/python3.8/site-packages/mprov_jobserver/plugins/plugin.py", line 38, in run Jul 10 10:06:33 devmaster mprov_jobserver[404653]: self.handle_jobs() Jul 10 10:06:33 devmaster mprov_jobserver[404653]: File "/usr/local/lib/python3.8/site-packages/mprov_jobserver/plugins/script_runner.py", line 169, in handle_jobs Jul 10 10:06:33 devmaster mprov_jobserver[404653]: for script in entity['osdistro']['scripts']: Jul 10 10:06:33 devmaster mprov_jobserver[404653]: TypeError: 'NoneType' object is not subscriptable [root@devmaster mprov]# Jul 10 10:06:34 devmaster mprov_jobserver[404653]: Job Server in 'runonce' mode. Jul 10 10:06:34 devmaster mprov_jobserver[404653]: Job Server Exiting...