Change the default API version used by the cli to v2

Since the v1 API is somewhat deprecated lets default to v2.

Change-Id: Iece5428b2a47e63995e26f58347d4f7c8f8cb238
This commit is contained in:
Angus Salkeld
2013-04-10 10:37:31 +10:00
parent f3d044291f
commit 2bcc72c485

View File

@@ -143,9 +143,9 @@ class CeilometerShell(object):
parser.add_argument('--ceilometer-api-version',
default=utils.env(
'CEILOMETER_API_VERSION', default='1'),
'CEILOMETER_API_VERSION', default='2'),
help='Defaults to env[CEILOMETER_API_VERSION] '
'or 1')
'or 2')
parser.add_argument('--ceilometer_api_version',
help=argparse.SUPPRESS)