Skip to content

Commit

Permalink
Fixes bug 952176
Browse files Browse the repository at this point in the history
Checks if value is string or not before decode.

Change-Id: I3f839770fdd7b00223ce02b95b2a265d903fa00e
  • Loading branch information
motokentsai authored and GheRivero committed May 10, 2012
1 parent 1209af4 commit 9e9a554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/nova-manage
Expand Up @@ -1721,8 +1721,10 @@ def main():
for k, v in fn_kwargs.items():
if v is None:
del fn_kwargs[k]
else:
elif isinstance(v, basestring):
fn_kwargs[k] = v.decode('utf-8')
else:
fn_kwargs[k] = v

fn_args = [arg.decode('utf-8') for arg in fn_args]

Expand Down

0 comments on commit 9e9a554

Please sign in to comment.