You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sort-of related,
Using output filters, I've been able to print all this out in key-value pairs without having to use YAML or JSON formats, which is great, but I am unable to find the key for execution type that would expand to "job" or "adhoc." - that same information which is missing from verbose output. I reckon I'll know that that is when these two outputs are in parity, but perhaps you could advise what that key is called in the meantime. It's not documented:
Input error for [info]: Option must have a value: [--outformat -% value] : Output format specifier for execution data. You can use "%key" where key is one of:id, project, description, argstring, permalink, href, status, job, job.*, user, serverUUID, dateStarted, dateEnded, successfulNodes, failedNodes. E.g. "%id %href"
The text was updated successfully, but these errors were encountered:
i can add "adhoc: true/false" format option. in the terse output it checks if the job data is empty which indicates it is an adhoc execution, but that isn't explicitly exposed in the verbose data
This may be true for everything in rd-cli, but here's what I'm seeing for executions:
The terse command clearly identifies an execution as a job or adhoc:
Terse:
[rundeck_service_account@my_server rundeck]$ RD_FORMAT=yaml RD_DATE_FORMAT="MM-dd-yyyy HH:mm:ss.SSS" rd executions info -e 136134
136134 succeeded 11-21-2019 19:01:48.000 11-21-2019 19:01:49.000 https://my_server.my_domain.com:4443/project/my_project/execution/show/136134 adhoc chmod -R o-rx /opt/rundeck/etc
Verbose, however, does not:
[rundeck_service_account@my_server rundeck]$ RD_FORMAT=yaml RD_DATE_FORMAT="MM-dd-yyyy HH:mm:ss.SSS" rd executions info -e 136134 -v
description: chmod -R o-rx /opt/rundeck/etc
project: my_project
successfulNodes:
argstring: null
serverUUID: null
dateStarted: 11-21-2019 19:01:48.000
dateEnded: 11-21-2019 19:01:49.000
id: '136134'
href: https://my_server.my_domain.com:4443/api/31/execution/136134
permalink: https://my_server.my_domain.com:4443/project/my_project/execution/show/136134
user: rundeck_user
status: succeeded
Sort-of related,
Using output filters, I've been able to print all this out in key-value pairs without having to use YAML or JSON formats, which is great, but I am unable to find the key for execution type that would expand to "job" or "adhoc." - that same information which is missing from verbose output. I reckon I'll know that that is when these two outputs are in parity, but perhaps you could advise what that key is called in the meantime. It's not documented:
Input error for [info]: Option must have a value: [--outformat -% value] : Output format specifier for execution data. You can use "%key" where key is one of:id, project, description, argstring, permalink, href, status, job, job.*, user, serverUUID, dateStarted, dateEnded, successfulNodes, failedNodes. E.g. "%id %href"
The text was updated successfully, but these errors were encountered: