Skip to content

Commit a652ae2

Browse files
committed
BZ1985934 - Fixing command output in sample aws yaml
1 parent 1e20384 commit a652ae2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

modules/machineset-yaml-aws.adoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ endif::infra[]
120120
+
121121
[source,terminal]
122122
----
123-
$ oc -n openshift-machine-api \
124-
-o jsonpath='{.spec.template.spec.providerSpec.value.ami.id}{"\n"}' \
125-
get machineset/<infrastructure_id>-worker-us-east-1a
123+
$ oc get -o jsonpath='{.status.infrastructureName}{"\n"}' infrastructure cluster
126124
----
127125
ifndef::infra[]
128126
<2> Specify the infrastructure ID, node label, and zone.
@@ -134,6 +132,13 @@ ifdef::infra[]
134132
<3> Specify the `<infra>` node label.
135133
<4> Specify a taint to prevent user workloads from being scheduled on infra nodes.
136134
<5> Specify a valid {op-system-first} AMI for your AWS zone for your {product-title} nodes.
135+
+
136+
[source,terminal]
137+
----
138+
$ oc -n openshift-machine-api \
139+
-o jsonpath='{.spec.template.spec.providerSpec.value.ami.id}{"\n"}' \
140+
get machineset/<infrastructure_id>-worker-<zone>
141+
----
137142
endif::infra[]
138143

139144
ifeval::["{context}" == "creating-infrastructure-machinesets"]

0 commit comments

Comments
 (0)