Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Harbor
Commits
286167ad
Unverified
Commit
286167ad
authored
6 years ago
by
Qian Deng
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #7755 from ninjadq/fix_rendering_none_in_jinja
Fix None rendered in jinja2
parents
8a2ee784
0aaccf62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
make/photon/prepare/utils/registry.py
+7
-1
make/photon/prepare/utils/registry.py
with
7 additions
and
1 deletion
+7
-1
make/photon/prepare/utils/registry.py
+
7
-
1
View file @
286167ad
...
...
@@ -36,6 +36,12 @@ def get_storage_provider_info(provider_name, provider_config):
# generate storage configuration section in yaml format
storage_provider_conf_list
=
[
provider_name
+
':'
]
for
config
in
provider_config_copy
.
items
():
storage_provider_conf_list
.
append
(
'{}: {}'
.
format
(
*
config
))
if
config
[
1
]
is
None
:
value
=
''
elif
config
[
1
]
==
True
:
value
=
'true'
else
:
value
=
config
[
1
]
storage_provider_conf_list
.
append
(
'{}: {}'
.
format
(
config
[
0
],
value
))
storage_provider_info
=
(
'
\n
'
+
' '
*
4
).
join
(
storage_provider_conf_list
)
return
storage_provider_info
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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