From 93cee6047f74e256c3695451b5dc51256208f76f Mon Sep 17 00:00:00 2001 From: Andrew Bogott Date: Wed, 15 Feb 2012 13:08:27 -0600 Subject: Decode nova-manage args into unicode. This improves handling of non-ASCII args... it's not exactly a comprehensive solution, though. Partial (demonstration) fix for bug 931667. Change-Id: Icc2aabe9c0c521732003f7013438630ebc8d2238 --- bin/nova-manage | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/nova-manage b/bin/nova-manage index f636c947c..1a7b405c2 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -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: -- cgit