Skip to content

Commit

Permalink
Decode nova-manage args into unicode.
Browse files Browse the repository at this point in the history
This improves handling of non-ASCII args... it's not
exactly a comprehensive solution, though.

Partial (demonstration) fix for bug 931667.

Change-Id: Icc2aabe9c0c521732003f7013438630ebc8d2238
  • Loading branch information
Andrew Bogott committed Feb 26, 2012
1 parent e2be2d8 commit 93cee60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/nova-manage
Expand Up @@ -2440,6 +2440,10 @@ def main():
for k, v in fn_kwargs.items():
if v is None:
del fn_kwargs[k]
else:
fn_kwargs[k] = v.decode('utf-8')

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

# call the action with the remaining arguments
try:
Expand Down

0 comments on commit 93cee60

Please sign in to comment.