def take_action(self, parsed_args):
        if not self.app.client_manager.auth_ref:
            raise exceptions.AuthorizationFailure(
                "Only an authorized user may issue a new token.")
        token = self.app.client_manager.auth_ref.service_catalog.get_token()
        if 'tenant_id' in token:
            token['project_id'] = token.pop('tenant_id')
        return zip(*sorted(six.iteritems(token)))
dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/identity/v3/token.py/IssueToken.take_action/original