X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/029fe503a466fd1de22f89bb518b85fbb030d4e7..9fa567b3b6b73d3728a29b0464328f93f016d991:/lib/client/gnt_job.py diff --git a/lib/client/gnt_job.py b/lib/client/gnt_job.py index 3206998..4d888ad 100644 --- a/lib/client/gnt_job.py +++ b/lib/client/gnt_job.py @@ -20,7 +20,7 @@ """Job related commands""" -# pylint: disable-msg=W0401,W0613,W0614,C0103 +# pylint: disable=W0401,W0613,W0614,C0103 # W0401: Wildcard import ganeti.cli # W0613: Unused argument, since all functions follow the same API # W0614: Unused import %s from wildcard import (since we need cli) @@ -40,7 +40,7 @@ _LIST_DEF_FIELDS = ["id", "status", "summary"] #: names _USER_JOB_STATUS = { constants.JOB_STATUS_QUEUED: "queued", - constants.JOB_STATUS_WAITLOCK: "waiting", + constants.JOB_STATUS_WAITING: "waiting", constants.JOB_STATUS_CANCELING: "canceling", constants.JOB_STATUS_RUNNING: "running", constants.JOB_STATUS_CANCELED: "canceled", @@ -157,7 +157,7 @@ def AutoArchiveJobs(opts, args): age = args[0] - if age == 'all': + if age == "all": age = -1 else: age = ParseTimespec(age) @@ -357,7 +357,7 @@ def WatchJob(opts, args): commands = { - 'list': ( + "list": ( ListJobs, [ArgJobId()], [NOHDR_OPT, SEP_OPT, FIELDS_OPT], "[job_id ...]", @@ -366,22 +366,22 @@ commands = { " op_status, op_result." " The default field" " list is (in order): %s." % utils.CommaJoin(_LIST_DEF_FIELDS)), - 'archive': ( + "archive": ( ArchiveJobs, [ArgJobId(min=1)], [], " [ ...]", "Archive specified jobs"), - 'autoarchive': ( + "autoarchive": ( AutoArchiveJobs, [ArgSuggest(min=1, max=1, choices=["1d", "1w", "4w", "all"])], [], "", "Auto archive jobs older than the given age"), - 'cancel': ( + "cancel": ( CancelJobs, [ArgJobId(min=1)], [], " [ ...]", "Cancel specified jobs"), - 'info': ( + "info": ( ShowJobs, [ArgJobId(min=1)], [], " [ ...]", "Show detailed information about the specified jobs"), - 'watch': ( + "watch": ( WatchJob, [ArgJobId(min=1, max=1)], [], "", "Follows a job and prints its output as it arrives"), }