Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
b64e52b1
Commit
b64e52b1
authored
Mar 16, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue #150: tweak script for running without external IPs
parent
86076807
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
examples/playbook/gcloud-ansible-playbook.py
examples/playbook/gcloud-ansible-playbook.py
+3
-2
No files found.
examples/playbook/gcloud-ansible-playbook.py
View file @
b64e52b1
...
@@ -18,9 +18,10 @@ def main():
...
@@ -18,9 +18,10 @@ def main():
for
inst
in
resp
[
'items'
]:
for
inst
in
resp
[
'items'
]:
if
inst
[
'status'
]
==
'RUNNING'
and
inst
[
'name'
].
startswith
(
group_name
):
if
inst
[
'status'
]
==
'RUNNING'
and
inst
[
'name'
].
startswith
(
group_name
):
ips
.
extend
(
ips
.
extend
(
bytes
(
config
[
'natIP'
])
#bytes(config['natIP'])
bytes
(
interface
[
'networkIP'
])
for
interface
in
inst
[
'networkInterfaces'
]
for
interface
in
inst
[
'networkInterfaces'
]
for
config
in
interface
[
'accessConfigs'
]
#
for config in interface['accessConfigs']
)
)
print
'Addresses:'
,
ips
print
'Addresses:'
,
ips
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment