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
Copy file name to clipboardExpand all lines: ibm/acctest/acctest.go
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -237,6 +237,7 @@ var (
237
237
Pi_image_bucket_regionstring
238
238
Pi_image_bucket_secret_keystring
239
239
Pi_image_idstring
240
+
Pi_instance_idstring
240
241
Pi_instance_namestring
241
242
Pi_key_namestring
242
243
Pi_network_address_group_idstring
@@ -1324,10 +1325,16 @@ func init() {
1324
1325
fmt.Println("[INFO] Set the environment variable PI_SNAPSHOT_ID for testing ibm_pi_instance_snapshot data source else it is set to default value '1ea33118-4c43-4356-bfce-904d0658de82'")
fmt.Println("[INFO] Set the environment variable PI_INSTANCE_ID for testing ibm_pi_instance resource else it is set to default value 'terraform-test-power'")
1332
+
}
1333
+
1334
+
Pi_instance_name=os.Getenv("PI_INSTANCE_NAME")
1328
1335
ifPi_instance_name=="" {
1329
1336
Pi_instance_name="terraform-test-power"
1330
-
fmt.Println("[INFO] Set the environment variable PI_PVM_INSTANCE_ID for testing Pi_instance_name resource else it is set to default value 'terraform-test-power'")
1337
+
fmt.Println("[INFO] Set the environment variable PI_INSTANCE_NAME for testing ibm_pi_instance resource else it is set to default value 'terraform-test-power'")
0 commit comments