Steps to reproduce:
-
Install the pack st2 pack install vcd
-
Configure the pack st2 pack config vcd and enter config
-
See the following results
defaults:
org:
Settings:
...
vcloud: {}
vclouds:
host: xxx
passwd: xxx
ssl_verify: true
user: xxx
Then run st2 action execute vcd.get_org_ids
Traceback (most recent call last):
File "/opt/stackstorm/st2/lib/python2.7/site-packages/python_runner/python_action_wrapper.py", line 333, in <module>
obj.run()
File "/opt/stackstorm/st2/lib/python2.7/site-packages/python_runner/python_action_wrapper.py", line 192, in run
output = action.run(**self._parameters)
File "/opt/stackstorm/packs/vcd/actions/get_org_ids.py", line 21, in run
self.set_connection(vcloud)
File "/opt/stackstorm/packs/vcd/actions/lib/vcd.py", line 43, in set_connection
self.vcd_host = self.config['vcloud'][vcloud]['host']
KeyError: u'xxx'
Expected Results
The vcloud dictionary is setup correctly during configuration.
vcloud: {
'default': {
'host': 'xxx',
'passwd': 'xxx',
'ssl_verify': True,
'user': 'xxx'
}
}
Steps to reproduce:
Install the pack
st2 pack install vcdConfigure the pack
st2 pack config vcdand enter configSee the following results
Then run
st2 action execute vcd.get_org_idsExpected Results
The
vclouddictionary is setup correctly during configuration.