Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting #31

Open
doronbl opened this issue May 6, 2019 · 0 comments
Open

Getting #31

doronbl opened this issue May 6, 2019 · 0 comments

Comments

@doronbl
Copy link

doronbl commented May 6, 2019

Blueprint:
`tosca_definitions_version: cloudify_dsl_1_3
imports:

  • 'http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml'
  • 'plugin:cloudify-ansible-plugin?version=2.2.0&distribution=centos'
    inputs:
    remote_host:
    type: string
    default:
    username:
    default:
    type: string
    node_templates:
    RunPlay:
    type: cloudify.nodes.Compute
    properties:
    ip:
    get_input: remote_host
    agent_config:
    install_method: none
    interfaces:
    cloudify.interfaces.lifecycle:
    start:
    implementation: ansible.cloudify_ansible.tasks.run
    inputs:
    playbook_path: ansible/play.yaml
    debug_level: 4
    options_config:
    - private_key_file: /path/to/p.key
    - remote_user: root
    - extra_vars: ''

`

Exception trace:
Traceback
Traceback (most recent call last):
File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/dispatch.py", line 712, in main
payload = handler.handle()
File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/dispatch.py", line 402, in handle
result = self._run_operation_func(ctx, kwargs)
File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/dispatch.py", line 431, in _run_operation_func
return self.func(*self.args, **kwargs)
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-ansible-plugin-2.2.0/lib/python2.7/site-packages/cloudify_ansible/init.py", line 77, in wrapper
func(playbook_args, ansible_env_vars, ctx)
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-ansible-plugin-2.2.0/lib/python2.7/site-packages/cloudify_ansible/tasks.py", line 45, in run
output, error, return_code = playbook.execute()
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-ansible-plugin-2.2.0/lib/python2.7/site-packages/cloudify_ansible_sdk/init.py", line 173, in execute
return self._execute()
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-ansible-plugin-2.2.0/lib/python2.7/site-packages/cloudify_ansible_sdk/init.py", line 155, in _execute
'args': self.command,
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-ansible-plugin-2.2.0/lib/python2.7/site-packages/cloudify_ansible_sdk/init.py", line 149, in command
options=self.options,
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-ansible-plugin-2.2.0/lib/python2.7/site-packages/cloudify_ansible_sdk/init.py", line 116, in options
self.options_config['extra_vars'] = {}
TypeError: list indices must be integers, not str

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant