Commit eab48b3
committed
fix: set provision_method to Provisioned after infrastructure provisioning
The provision_method field in RuntimeOutputs was not being set when using
the provision command, resulting in null in the environment state JSON.
This commit adds the missing with_provision_method() call to set the field
to ProvisionMethod::Provisioned after successful provisioning, consistent
with how the register command sets it to ProvisionMethod::Registered.
Changes:
- Add import for ProvisionMethod in provision handler
- Chain with_provision_method(ProvisionMethod::Provisioned) after
with_instance_ip() in the success handler
- Update comment to reflect both instance IP and provision method are set
This ensures the provision_method field correctly indicates whether
infrastructure was created via 'provision' (Provisioned) or connected
via 'register' (Registered), which affects lifecycle operations like
destroy.1 parent 585cd0f commit eab48b3
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
115 | | - | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
0 commit comments