Change CLI command to get release version

So the Newton not supported old format like "fuel --fuel-version"
Current format is "fuel2 fuel-version".
Used for reboot_plugin tests

Change-Id: I9ee6602ed435d6e87cc657d10e7c2424b84cde4a
Closes-Bug: 1631900
This commit is contained in:
Dmitry Belyaninov 2016-12-01 13:19:43 +00:00
parent 3b0303d26c
commit 4feea795c6

View File

@ -391,7 +391,7 @@ class FuelPluginBuilder(BaseActions):
"""
metadata_path = os.path.join(path, 'metadata.yaml')
output = self.ssh_manager.execute_on_remote(
ip=self.admin_ip, cmd="fuel --fuel-version --json",
ip=self.admin_ip, cmd="fuel2 fuel-version -f json",
jsonify=True)['stdout_json']
fuel_version = [str(output['release'])]
openstack_version = str(output['openstack_version'])