Set xmlns namespace attribute.

Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/6722d541
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/6722d541
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/6722d541

Branch: refs/heads/trunk
Commit: 6722d541e3e887ee72fc07962d00084b9fbbf752
Parents: b296ad8
Author: Tomaz Muraus <[email protected]>
Authored: Sun Apr 5 18:54:12 2015 +0200
Committer: Tomaz Muraus <[email protected]>
Committed: Sun Apr 5 18:54:12 2015 +0200

----------------------------------------------------------------------
 libcloud/compute/drivers/azure.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/6722d541/libcloud/compute/drivers/azure.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure.py 
b/libcloud/compute/drivers/azure.py
index f07ed90..c39bc87 100644
--- a/libcloud/compute/drivers/azure.py
+++ b/libcloud/compute/drivers/azure.py
@@ -2631,6 +2631,7 @@ class AzureXmlSerializer(object):
         xml.attrib["xmlns"] = "http://schemas.microsoft.com/windowsazure";
         """
         xml = ET.Element(document_element_name)
+        xml.set("xmlns", "http://schemas.microsoft.com/windowsazure";)
 
         if inner_xml is not None:
             xml.append(inner_xml)

Reply via email to