Skip to content

Configuration at module level is broken #51

@rvalle

Description

@rvalle

cloudstack modules can be configured via 3 diferent ways

  • environment variables
  • cloudstack ini files
  • module supplied parameters

If environment parameters are not supplied ini search path will kick in. A SystemExit exception is raised if no ini file is supplied.

The code responsible for reading configuration from modules is unreachable if no ini file is present.

Therefore using a cloudstack ansible module configured only via module parameters does not work and the following exception is raised instead:

'''
Config file not found. Tried /home/ansible/.cloudstack.ini, /ansible/cloudstack.ini
'''

or similar.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions