Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
fcfe1243
Commit
fcfe1243
authored
6 years ago
by
Magnus Holm
Browse files
Options
Downloads
Patches
Plain Diff
contrib/terraform/terraform.py: fix for Ansible 2.6.2+, issue #3067
parent
b1ef336f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/terraform/terraform.py
+4
-0
4 additions, 0 deletions
contrib/terraform/terraform.py
with
4 additions
and
0 deletions
contrib/terraform/terraform.py
+
4
−
0
View file @
fcfe1243
...
...
@@ -706,6 +706,10 @@ def query_list(hosts):
for
name
,
attrs
,
hostgroups
in
hosts
:
for
group
in
set
(
hostgroups
):
# Ansible 2.6.2 stopped supporting empty group names: https://github.com/ansible/ansible/pull/42584/commits/d4cd474b42ed23d8f8aabb2a7f84699673852eaf
# Empty group name defaults to "all" in Ansible < 2.6.2 so we alter empty group names to "all"
if
not
group
:
group
=
"
all
"
groups
[
group
].
setdefault
(
'
hosts
'
,
[])
groups
[
group
][
'
hosts
'
].
append
(
name
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment