fix serialize restart spec with null string
Signed-off-by: realityone <realityone@me.com>
This commit is contained in:
parent
e4bb9bde30
commit
22d91f60be
3 changed files with 9 additions and 0 deletions
|
|
@ -93,6 +93,8 @@ def parse_restart_spec(restart_config):
|
|||
|
||||
|
||||
def serialize_restart_spec(restart_spec):
|
||||
if not restart_spec:
|
||||
return ''
|
||||
parts = [restart_spec['Name']]
|
||||
if restart_spec['MaximumRetryCount']:
|
||||
parts.append(six.text_type(restart_spec['MaximumRetryCount']))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue