fix(docker-env2): instance deploy uses --id (not --instance-id) in native alarm seed
This commit is contained in:
@@ -136,7 +136,7 @@ echo "Deploying the MxAlarm demo instance to site-x..."
|
||||
INSTANCE_ID=$($CLI $URL $AUTH --format json instance list \
|
||||
| python3 -c "import sys,json; print(next((i['id'] for i in json.load(sys.stdin) if i.get('uniqueName')=='MxAlarmDemo-1'), ''))" 2>/dev/null)
|
||||
if [ -n "$INSTANCE_ID" ]; then
|
||||
$CLI $URL $AUTH instance deploy --instance-id "$INSTANCE_ID" \
|
||||
$CLI $URL $AUTH instance deploy --id "$INSTANCE_ID" \
|
||||
|| echo " (instance deploy reported an issue — check 'deploy status')"
|
||||
else
|
||||
echo " (MxAlarmDemo-1 not found — skipping instance deploy)"
|
||||
|
||||
Reference in New Issue
Block a user