

def take_action(self, parsed_args):
    identity_client = self.app.client_manager.identity
    rules = self._read_rules(parsed_args.rules)
    mapping = identity_client.federation.mappings.create(mapping_id=parsed_args.mapping, rules=rules)
    mapping._info.pop('links', None)
    return zip(*sorted(six.iteritems(mapping._info)))

dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/identity/v3/mapping.py CreateMapping.take_action/original