Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Baur
cloudify3
Commits
0d8a8a30
Commit
0d8a8a30
authored
Jun 17, 2015
by
Daniel Baur
Browse files
...
parent
bb683838
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ghost-openstack/scripts/ghost/ghost.py
ghost-openstack/scripts/ghost/ghost.py
+2
-1
No files found.
ghost-openstack/scripts/ghost/ghost.py
View file @
0d8a8a30
...
...
@@ -44,6 +44,7 @@ def install():
def
writeConfig
(
subject
=
None
):
subject
=
subject
or
ctx
postgre_ip_address
=
subject
.
instance
.
runtime_properties
.
postgre_ip_address
template
=
Template
(
ctx
.
get_resource
(
TEMPLATE_RESOURCE_NAME
))
...
...
@@ -52,7 +53,7 @@ def writeConfig(subject=None):
config
=
subject
.
node
.
properties
.
copy
()
config
.
update
(
dict
(
postgre_ip
=
subject
.
instance
.
runtime_properties
.
postgre_ip_address
))
postgre_ip
=
postgre_ip_address
))
ctx
.
logger
.
debug
(
'Rendering the Jinja2 template to {0}.'
.
format
(
CONFIG_PATH
))
ctx
.
logger
.
debug
(
'The config dict: {0}.'
.
format
(
config
))
...
...
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