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

Identical code for different logical branches in molecule\provisioner\ansible.py #2355

Closed
huornlmj opened this issue Oct 9, 2019 · 0 comments · Fixed by #2364
Closed

Identical code for different logical branches in molecule\provisioner\ansible.py #2355

huornlmj opened this issue Oct 9, 2019 · 0 comments · Fixed by #2364
Labels

Comments

@huornlmj
Copy link

huornlmj commented Oct 9, 2019

Issue Type

  • Bug report

Molecule installation method (one of):

  • source

Issue

molecule/provisioner/ansible.py: def _add_or_update_vars(self), line 794.

for instance_name, _ in self.host_vars.items():
                    if instance_name == 'localhost':
                        instance_key = instance_name
                    else:
                        instance_key = instance_name

Both logical branches result in the same outcome. Is this intentional?

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

Successfully merging a pull request may close this issue.

2 participants