mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
check if job before verifying args
This commit is contained in:
parent
1e27f863c9
commit
88ef6daa8a
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class User(object):
|
|||
pending_vms = []
|
||||
for job in jobs:
|
||||
job = q.fetch_job(job)
|
||||
if len(job.args) > 2:
|
||||
if job and len(job.args) > 2:
|
||||
if job.args[0] == self.name or job.args[2] == self.name:
|
||||
vm_dict = dict()
|
||||
vm_dict['name'] = job.args[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue