Commit 4fda45cc authored by Romain Courteaud's avatar Romain Courteaud

Decode slave reference to unicode.

parent 3e5f56eb
...@@ -279,7 +279,7 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin): ...@@ -279,7 +279,7 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string> <string>slap_software_type</string>
<unicode>%(slave_1_software_type)s</unicode> <unicode>%(slave_1_software_type)s</unicode>
<string>slave_reference</string> <string>slave_reference</string>
<string>%(slave_1_instance_guid)s</string> <unicode>%(slave_1_instance_guid)s</unicode>
<string>slave_title</string> <string>slave_title</string>
<unicode>%(slave_1_title)s</unicode> <unicode>%(slave_1_title)s</unicode>
</dictionary> </dictionary>
...@@ -785,7 +785,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin): ...@@ -785,7 +785,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string> <string>slap_software_type</string>
<unicode>%(slave_1_software_type)s</unicode> <unicode>%(slave_1_software_type)s</unicode>
<string>slave_reference</string> <string>slave_reference</string>
<string>%(slave_1_instance_guid)s</string> <unicode>%(slave_1_instance_guid)s</unicode>
<string>slave_title</string> <string>slave_title</string>
<unicode>%(slave_1_title)s</unicode> <unicode>%(slave_1_title)s</unicode>
</dictionary> </dictionary>
...@@ -989,7 +989,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin): ...@@ -989,7 +989,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string> <string>slap_software_type</string>
<unicode>%(slave_1_software_type)s</unicode> <unicode>%(slave_1_software_type)s</unicode>
<string>slave_reference</string> <string>slave_reference</string>
<string>%(slave_1_instance_guid)s</string> <unicode>%(slave_1_instance_guid)s</unicode>
<string>slave_title</string> <string>slave_title</string>
<unicode>%(slave_1_title)s</unicode> <unicode>%(slave_1_title)s</unicode>
</dictionary> </dictionary>
...@@ -1872,7 +1872,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin): ...@@ -1872,7 +1872,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string> <string>slap_software_type</string>
<unicode>%(slave_1_software_type)s</unicode> <unicode>%(slave_1_software_type)s</unicode>
<string>slave_reference</string> <string>slave_reference</string>
<string>%(slave_1_instance_guid)s</string> <unicode>%(slave_1_instance_guid)s</unicode>
<string>slave_title</string> <string>slave_title</string>
<unicode>%(slave_1_title)s</unicode> <unicode>%(slave_1_title)s</unicode>
</dictionary> </dictionary>
...@@ -2390,4 +2390,4 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin): ...@@ -2390,4 +2390,4 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
self.assertRevokeComputerCertificateSimulator((), {}) self.assertRevokeComputerCertificateSimulator((), {})
finally: finally:
if os.path.exists(self.revoke_computer_certificate_simulator): if os.path.exists(self.revoke_computer_certificate_simulator):
os.unlink(self.revoke_computer_certificate_simulator) os.unlink(self.revoke_computer_certificate_simulator)
\ No newline at end of file
28 29
\ No newline at end of file \ No newline at end of file
...@@ -1324,7 +1324,7 @@ class SlapTool(BaseTool): ...@@ -1324,7 +1324,7 @@ class SlapTool(BaseTool):
'slave_title': slave_instance.getTitle().decode("UTF-8"), 'slave_title': slave_instance.getTitle().decode("UTF-8"),
'slap_software_type': \ 'slap_software_type': \
slave_instance.getSourceReference().decode("UTF-8"), slave_instance.getSourceReference().decode("UTF-8"),
'slave_reference': slave_instance.getReference(), 'slave_reference': slave_instance.getReference().decode("UTF-8"),
'xml': slave_instance.getTextContent(), 'xml': slave_instance.getTextContent(),
'connection_xml': slave_instance.getConnectionXml(), 'connection_xml': slave_instance.getConnectionXml(),
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment