Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
]
for map in mappings:
_read_etree_element(rule_node, map[0], rule, map[1], map[2])
rights_nodes = rule_node.find('./sb:Rights', _etree_sb_feed_namespaces)
if rights_nodes is not None:
for access_rights_node in rights_nodes.findall('./sb:AccessRights', _etree_sb_feed_namespaces):
node_value = _get_etree_text(access_rights_node)
if node_value:
rule.rights.append(node_value)
hub.authorization_rules.append(rule)
if invalid_event_hub:
raise WindowsAzureError(_ERROR_EVENT_HUB_NOT_FOUND)
# extract id, updated and name value from feed entry and set them of queue.
for name, value in _ETreeXmlToObject.get_entry_properties_from_element(
entry_element, True).items():
if name == 'name':
value = value.partition('?')[0]
setattr(hub, name, value)
return hub