From 8a75a6c1cef823c2ca9b921b8f0cba0e862af9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 22 Jan 2026 01:37:53 +0200 Subject: [PATCH] Allow using operation without parameter name in Manager at Infra command --- src/commands/infra.sh | 8 +++++++- wx | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/commands/infra.sh b/src/commands/infra.sh index 4ae5394..9addc10 100644 --- a/src/commands/infra.sh +++ b/src/commands/infra.sh @@ -72,7 +72,13 @@ wx-infra(){ else host=${args['host']} fi - operation=${args['operation']} + + if [[ -z ${args['3']} ]] + then + operation=${args['operation']} + else + operation=${args['3']} + fi wxi-header "Manager" h3 ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$host" diff --git a/wx b/wx index 089138b..174bf23 100755 --- a/wx +++ b/wx @@ -360,7 +360,13 @@ wx-infra(){ else host=${args['host']} fi - operation=${args['operation']} + + if [[ -z ${args['3']} ]] + then + operation=${args['operation']} + else + operation=${args['3']} + fi wxi-header "Manager" h3 ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$host"