...
The default value is an empty list.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
>>> @dynamic_choice_command("primary_choice_field") |
...
>>> def primary_choice_command(self, fields): |
...
>>> # Implementation omitted |
...
>>> return ExtensionResult( |
...
... rc = 0, |
...
... message = "Values for choice field: 'primary_choice_field'", |
...
... values = ["Start", "Pause", "Stop", "Build", "Destroy"] |
...
... ) |
Note |
---|
The form of the ExtensionResult constructor when instantiated in the context of Extension Start, is as follows: Constructor Signature (rc = 0, message = '', output_fields = None, unv_output = None, call_frame = None, **kwargs) |
...
The default value is None.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
>>> def extension_start(self, fields): |
...
>>> # Implementation omitted |
...
>>> return ExtensionResult( |
...
... unv_output = "extension_start() finished successfully", |
...
... rc = 0 |
...
... ) |