

def create(self, string):
    'Deserialize an xml-formatted security group create request'
    dom = minidom.parseString(string)
    security_group = {
        
    }
    sg_node = self.find_first_child_named(dom, 'security_group')
    if (sg_node is not None):
        if sg_node.hasAttribute('name'):
            security_group['name'] = sg_node.getAttribute('name')
        desc_node = self.find_first_child_named(sg_node, 'description')
        if desc_node:
            desc_node['description'] = self.extract_text(desc_node)
    return {
        'body': {
            'security_group': security_group,
        },
    }

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/contrib/security_groups.py SecurityGroupXMLDeserializer.create/VarMisuse@90/153 `security_group`->`desc_node`