tempest/services/compute/v3/xml/servers_client.py
def create_image(self, server_id, name, meta=None):
        """Creates an image of the original server."""
        post_body = Element('create_image', name=name)

        if meta:
            metadata = Element('metadata')
            post_body.append(metadata)
            for k, v in meta.items():
                data = Element('meta', key=k)
                data.append(Text(v))
                metadata.append(data)
        resp, body = self.post('servers/%s/action' % str(server_id),
                               str(Document(post_body)), self.headers)
        return resp, body
Creates an image of the original server.
Creates an image of the original server.
Creates an image of the original server .
def create_image(self, server_id, name, meta=None):
        post_body = Element('create_image', name=name)
        if meta:
            metadata = Element('metadata')
            post_body.append(metadata)
            for k, v in meta.items():
                data = Element('meta', key=k)
                data.append(Text(v))
                metadata.append(data)
        resp, body = self.post('servers/%s/action' % str(server_id),
                               str(Document(post_body)), self.headers)
        return resp, body
def create_image ( self , server_id , name , meta = None ) : post_body = Element ( 'create_image' , name = name ) if meta : metadata = Element ( 'metadata' ) post_body . append ( metadata ) for k , v in meta . items ( ) : data = Element ( 'meta' , key = k ) data . append ( Text ( v ) ) metadata . append ( data ) resp , body = self . post ( 'servers/%s/action' % str ( server_id ) , str ( Document ( post_body ) ) , self . headers ) return resp , body
Creates an image of the original server.
Creates an image of the original server .
"""Creates an image of the original server."""
self
server_id
name
meta