diff options
| author | Kei Masumoto <masumotok@nttdata.co.jp> | 2011-03-10 13:30:52 +0900 |
|---|---|---|
| committer | Kei Masumoto <masumotok@nttdata.co.jp> | 2011-03-10 13:30:52 +0900 |
| commit | f0bb6d9fc47b92d335c7d7fa238dfd43f0dbdf69 (patch) | |
| tree | 81f5f0cdee61e596ba96e8b5ded6132e28e9466a /bin | |
| parent | 1b9ac145de54447f37cdea50ddd1dd028e5f57c1 (diff) | |
| download | nova-f0bb6d9fc47b92d335c7d7fa238dfd43f0dbdf69.tar.gz nova-f0bb6d9fc47b92d335c7d7fa238dfd43f0dbdf69.tar.xz nova-f0bb6d9fc47b92d335c7d7fa238dfd43f0dbdf69.zip | |
fixed based on reviewer's comment.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-manage | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index d782f6028..f9e4fa8dc 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -567,7 +567,7 @@ class VmCommands(object): if (FLAGS.volume_driver != 'nova.volume.driver.AOEDriver' and \ FLAGS.volume_driver != 'nova.volume.driver.ISCSIDriver'): msg = _("Support only AOEDriver and ISCSIDriver. Sorry!") - raise exception.Error(msg) + raise exception.Error(msg) rpc.call(ctxt, FLAGS.scheduler_topic, @@ -637,8 +637,8 @@ class ServiceCommands(object): "args": {"host": host}}) if type(result) != dict: - print 'Unexpected error occurs' - print '[Result]', result + print _('An unexpected error has occurred.') + print _('[Result]'), result else: cpu = result['resource']['vcpus'] mem = result['resource']['memory_mb'] @@ -667,7 +667,7 @@ class ServiceCommands(object): ctxt = context.get_admin_context() service_refs = db.service_get_all_by_host(ctxt, host) if len(service_refs) <= 0: - raise exception.Invalid(_('%s does not exists.') % host) + raise exception.Invalid(_('%s does not exist.') % host) service_refs = [s for s in service_refs if s['topic'] == 'compute'] if len(service_refs) <= 0: |
