Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge "Fix XML formatting for create server personality."

  • Loading branch information...
commit cfa1fd4b3fa3505b8db2d0abc67b423b2f8b2171 2 parents 8ebc369 + 2dfc282
Jenkins authored openstack-gerrit committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 tempest/services/nova/xml/servers_client.py
View
8 tempest/services/nova/xml/servers_client.py
@@ -168,7 +168,13 @@ def create_server(self, name, image_ref, flavor_ref, **kwargs):
meta.append(Text(v))
metadata.append(meta)
- server.append(Element("personality"))
+ if 'personality' in kwargs:
+ personality = Element('personality')
+ server.append(personality)
+ for k in kwargs['personality']:
+ temp = Element('file', path=k['path'])
+ temp.append(Text(k['contents']))
+ personality.append(temp)
resp, body = self.post('servers', str(Document(server)), self.headers)
server = self._parse_server(etree.fromstring(body))

0 comments on commit cfa1fd4

Please sign in to comment.
Something went wrong with that request. Please try again.