diff --git a/trove/cmd/manage.py b/trove/cmd/manage.py index cadd21d3f4..76500d312c 100644 --- a/trove/cmd/manage.py +++ b/trove/cmd/manage.py @@ -212,7 +212,8 @@ def main(): 'packages', help='Packages required by the datastore version that ' 'are installed on the guest image.') parser.add_argument( - 'active', help='Whether the datastore version is active or not. ' + 'active', type=int, + help='Whether the datastore version is active or not. ' 'Accepted values are 0 and 1.') parser = subparser.add_parser( diff --git a/trove/tests/unittests/mgmt/test_datastores.py b/trove/tests/unittests/mgmt/test_datastores.py index 0305dc2394..94cf2e0b7e 100644 --- a/trove/tests/unittests/mgmt/test_datastores.py +++ b/trove/tests/unittests/mgmt/test_datastores.py @@ -31,10 +31,10 @@ class TestDatastoreVersion(trove_testtools.TestCase): models.update_datastore(name='test_ds', default_version=None) models.update_datastore_version( 'test_ds', 'test_vr1', 'mysql', - '154b350d-4d86-4214-9067-9c54b230c0da', 'pkg-1', '1') + '154b350d-4d86-4214-9067-9c54b230c0da', 'pkg-1', 1) models.update_datastore_version( 'test_ds', 'test_vr2', 'mysql', - '154b350d-4d86-4214-9067-9c54b230c0da', 'pkg-1', '1') + '154b350d-4d86-4214-9067-9c54b230c0da', 'pkg-1', 1) self.ds = models.Datastore.load('test_ds') self.ds_version2 = models.DatastoreVersion.load(self.ds, 'test_vr2')