a_frame/utils/action_providers/GitAction.py
def connect_to_keystone(self):
        """
        connects to Keystone in the specified project scope

        :return: boolean if successful

        """

        _auth_json = """
            { "auth": {
                "identity": {
                  "methods": ["password"],
                  "password": {
                    "user": {
                      "name": "%s",
                      "domain": { "id": "default" },
                      "password": "%s"
                    }
                  }
                },
                  "scope": {
                        "project": {
                            "domain": {
                                "id": "default"
                            },
                            "name": "%s"
                        }
                    }
                }
            }
            """ % (self.username, self.password, self.keystone_project)

        full_url = "http://" + self.keystone_host + self._keystone_auth_path
        print full_url
        request = urllib2.Request(full_url)
        request.add_header("Content-Type", "application/json")
        request.add_header("charset", "UTF-8")
        request.add_header("X-AFrame-Useragent", "%s:%s" % (platform.node(), "aframe_rest_client"))
        request.add_header("Content-Length", len(_auth_json))
        result = urllib2.urlopen(request, _auth_json)
        self._auth_token = result.info().getheader('X-Subject-Token')
        return True

        connects to Keystone in the specified project scope

        :return: boolean if successful

        
connects to Keystone in the specified project scope
connects to Keystone in the specified project scope
def connect_to_keystone(self):
        _auth_json = """
            { "auth": {
                "identity": {
                  "methods": ["password"],
                  "password": {
                    "user": {
                      "name": "%s",
                      "domain": { "id": "default" },
                      "password": "%s"
                    }
                  }
                },
                  "scope": {
                        "project": {
                            "domain": {
                                "id": "default"
                            },
                            "name": "%s"
                        }
                    }
                }
            }
            """ % (self.username, self.password, self.keystone_project)
        full_url = "http://" + self.keystone_host + self._keystone_auth_path
        print full_url
        request = urllib2.Request(full_url)
        request.add_header("Content-Type", "application/json")
        request.add_header("charset", "UTF-8")
        request.add_header("X-AFrame-Useragent", "%s:%s" % (platform.node(), "aframe_rest_client"))
        request.add_header("Content-Length", len(_auth_json))
        result = urllib2.urlopen(request, _auth_json)
        self._auth_token = result.info().getheader('X-Subject-Token')
        return True
def connect_to_keystone ( self ) : _auth_json = """
            { "auth": {
                "identity": {
                  "methods": ["password"],
                  "password": {
                    "user": {
                      "name": "%s",
                      "domain": { "id": "default" },
                      "password": "%s"
                    }
                  }
                },
                  "scope": {
                        "project": {
                            "domain": {
                                "id": "default"
                            },
                            "name": "%s"
                        }
                    }
                }
            }
            """ % ( self . username , self . password , self . keystone_project ) full_url = "http://" + self . keystone_host + self . _keystone_auth_path print full_url request = urllib2 . Request ( full_url ) request . add_header ( "Content-Type" , "application/json" ) request . add_header ( "charset" , "UTF-8" ) request . add_header ( "X-AFrame-Useragent" , "%s:%s" % ( platform . node ( ) , "aframe_rest_client" ) ) request . add_header ( "Content-Length" , len ( _auth_json ) ) result = urllib2 . urlopen ( request , _auth_json ) self . _auth_token = result . info ( ) . getheader ( 'X-Subject-Token' ) return True
connects to Keystone in the specified project scope
connects to Keystone in the specified project scope
"""
        connects to Keystone in the specified project scope

        :return: boolean if successful

        """
boolean if successful
boolean if successful
self