Skip to content

Configuration does not set vcloud config correctly #9

Description

@surfer190

Steps to reproduce:

  1. Install the pack st2 pack install vcd

  2. Configure the pack st2 pack config vcd and enter config

  3. 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'
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions