nova-manage config convert --infile=aaa --outfile=bbb
results as follows
> Possible wrong number of arguments supplied
> Converts a flagfile and prints results to stdout.
> Usage: nova-manage config convert <args> [options]
>
> Options:
> -h, --help show this help message and exit
> --infile=<path> old-style flagfile to convert to config
> --outfile=<path> path for output file. Writes configto stdout if not
> specified.
> 2012-03-08 15:45:36 CRITICAL nova [-] convert() got an unexpected keyword
> argument 'file_path'
> (nova): TRACE: Traceback (most recent call last):
> (nova): TRACE: File "/usr/local/bin/nova-manage", line 5, in <module>
> (nova): TRACE: pkg_resources.run_script('nova==2012.1', 'nova-manage')
> (nova): TRACE: File "/usr/lib/python2.7/dist-packages/pkg_resources.py",
> line 467, in run_script
> (nova): TRACE: self.require(requires)[0].run_script(script_name, ns)
> (nova): TRACE: File "/usr/lib/python2.7/dist-packages/pkg_resources.py",
> line 1200, in run_script
> (nova): TRACE: execfile(script_filename, namespace, namespace)
> (nova): TRACE: File
> "/usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/EGG-INFO/scripts/nova-manage",
> line 2201, in <module>
> (nova): TRACE: main()
> (nova): TRACE: File
> "/usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/EGG-INFO/scripts/nova-manage",
> line 2188, in main
> (nova): TRACE: fn(*fn_args, **fn_kwargs)
> (nova): TRACE: TypeError: convert() got an unexpected keyword argument
> 'file_path'
> (nova): TRACE:
Signed-off-by: Isaku Yamahata <[email protected]>
---
bin/nova-manage | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/nova-manage b/bin/nova-manage
index 00a824b..83d02ee 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -1930,9 +1930,9 @@ class ConfigCommands(object):
if value is not None:
print '%s = %s' % (key, value)
- @args('--infile', dest='file_path', metavar='<path>',
+ @args('--infile', dest='infile', metavar='<path>',
help='old-style flagfile to convert to config')
- @args('--outfile', dest='file_path', metavar='<path>',
+ @args('--outfile', dest='outfile', metavar='<path>',
help='path for output file. Writes config'
'to stdout if not specified.')
def convert(self, infile, outfile=None):
--
1.7.1.1
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel