pkl-mufqi / regat-test

0 stars 0 forks source link

[Problem] testing template literals #105

Open regatapp[bot] opened 2 years ago

regatapp[bot] commented 2 years ago

Alert's URL

https://senseobservationsystem.app.opsgenie.com/alert/detail/5fbc6e57-1197-4c20-a965-4e6acf2f1a44-1635993855721/details

Alert's Description

regatapp[bot] commented 2 years ago
Policy has been added successfully
Policy's Name: Issue 105
mufqiuwais commented 2 years ago

@regat-app workaround add adhoc -a "${labels.instance}" -h

regatapp[bot] commented 2 years ago
Usage: @regat-app workaround add adhoc [options]

adding new adhoc workaround

Options:
  -a, --action-name <action-name>     action name for opsgenie (mandatory)
  -i, --inventory <inventory>         AWX inventory name (mandatory)
  -c, --credential <credential>       AWX credential name (mandatory)
  -l, --limit <limit>                 target host(s) (mandatory)
  -m, --module-name <module-name>     module name from AWX (mandatory)
  -p, --privilege-escalation          module args for the adhoc (default: false)
  -M, --module-args [module-args...]  module args for the adhoc
  -e, --extra-vars [extra-vars...]    extra variables for the AWX job
  -h, --help                          display help for command
mufqiuwais commented 2 years ago

@regat-app workaround add adhoc -a "${labels.instance}" -i "Demo Inventory" -c "Demo Credential" -l "limit" -m "ping"

regatapp[bot] commented 2 years ago
Action has been added successfully.
{
  "actionName": "localhost",
  "credential": 1,
  "credentialName": "Demo Credential",
  "extraVars": [],
  "inventory": 3,
  "inventoryName": "Demo Inventory",
  "limit": "limit",
  "moduleArgs": "",
  "moduleName": "ping",
  "org": "Intern",
  "privilegeEscalation": false,
  "stringExtraVars": "",
  "type": "adhoc"
}
mufqiuwais commented 2 years ago

@regat-app workaround add adhoc -a "ping to ${labels.instance}" -i "Demo Inventory" -c "Demo Credential" -l "${labels.instance}" -m "ping"

regatapp[bot] commented 2 years ago
Action has been added successfully.
{
  "actionName": "ping to localhost",
  "credential": 1,
  "credentialName": "Demo Credential",
  "extraVars": [],
  "inventory": 3,
  "inventoryName": "Demo Inventory",
  "limit": "localhost",
  "moduleArgs": "",
  "moduleName": "ping",
  "org": "Intern",
  "privilegeEscalation": false,
  "stringExtraVars": "",
  "type": "adhoc"
}
mufqiuwais commented 2 years ago

@regat-app workaround add adhoc -a "ping to ${labels.test}" -i "Demo Inventory" -c "Demo Credential" -l "${labels.instance}" -m "ping"

regatapp[bot] commented 2 years ago
Template literal expression calls unacceptable tag/label: test
regatapp[bot] commented 2 years ago
Policy's tags has been deleted successfully
regatapp[bot] commented 2 years ago
Policy's tags has been updated successfully