Skip to content

Commit

Permalink
Fix show job=<jobname> by keyword order change
Browse files Browse the repository at this point in the history
As job is also the beginning of jobdefs, the keyword
parser matches jobdefs if show job is called.

Reordering the keywords fixed the problem.

Fixes #399: show job=<jobname> does not work
  • Loading branch information
pstorz authored and Marco van Wieringen committed Feb 17, 2015
1 parent 75ef493 commit 85e5474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dird/ua_output.c
Expand Up @@ -182,8 +182,8 @@ static struct showstruct avail_resources[] = {
{ NT_("clients"), R_CLIENT },
{ NT_("counters"), R_COUNTER },
{ NT_("devices"), R_DEVICE },
{ NT_("jobdefs"), R_JOBDEFS },
{ NT_("jobs"), R_JOB },
{ NT_("jobdefs"), R_JOBDEFS },
{ NT_("storages"), R_STORAGE },
{ NT_("catalogs"), R_CATALOG },
{ NT_("schedules"), R_SCHEDULE },
Expand Down

0 comments on commit 85e5474

Please sign in to comment.