Drop unicode prefix from command output

... because it is not longer shown in Python 3.

Change-Id: I126798422bcc3b78e1213865e0f23fef0b976fef
(cherry picked from commit fc2f08cd45)
(cherry picked from commit f6cd73780e)
This commit is contained in:
Takashi Kajinami 2024-10-08 17:56:34 +09:00
parent c2ab06c6a9
commit 1af1f2560e

View File

@ -65,7 +65,7 @@ hosts="[]"
.and_return('name="just"
id="just"
availability_zone="simple"
properties="{u\'nice\': u\'cookie\'}"
properties="{\'nice\': \'cookie\'}"
hosts="[]"
')
expect(described_class).to receive(:openstack)
@ -73,8 +73,8 @@ hosts="[]"
.and_return('name="just"
id="just"
availability_zone="simple"
properties="{u\'nice\': u\'cookie\'}"
hosts="[u\'example\']"
properties="{\'nice\': \'cookie\'}"
hosts="[\'example\']"
')
provider.create
@ -164,7 +164,7 @@ hosts="[u\'example\']"
.and_return('name="just"
id="just"
availability_zone="simple"
properties="{u\'nice\': u\'cookie\'}"
properties="{\'nice\': \'cookie\'}"
hosts="[]"
')
@ -174,8 +174,8 @@ hosts="[]"
.and_return('name="just"
id="just"
availability_zone="simple"
properties="{u\'nice\': u\'cookie\'}"
hosts="[u\'known\']"
properties="{\'nice\': \'cookie\'}"
hosts="[\'known\']"
')
expect(described_class).to receive(:openstack)
@ -184,8 +184,8 @@ hosts="[u\'known\']"
.and_return('name="just"
id="just"
availability_zone="simple"
properties="{u\'nice\': u\'cookie\'}"
hosts="[u\'known\', u\'known_too\']"
properties="{\'nice\': \'cookie\'}"
hosts="[\'known\', \'known_too\']"
')
expect(described_class).to receive(:openstack)
@ -194,8 +194,8 @@ hosts="[u\'known\', u\'known_too\']"
.and_return('name="just"
id="just"
availability_zone="simple"
properties="{u\'nice\': u\'cookie\'}"
hosts="[u\'known_too\']"
properties="{\'nice\': \'cookie\'}"
hosts="[\'known_too\']"
')
# this creates a provider with the attributes defined above as 'aggregate_attrs'