summaryrefslogtreecommitdiffstats
path: root/testapi/testapi-client/testapiclient/projects.py
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/testapi-client/testapiclient/projects.py')
-rw-r--r--testapi/testapi-client/testapiclient/projects.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/testapi/testapi-client/testapiclient/projects.py b/testapi/testapi-client/testapiclient/projects.py
index cd55e74..ee2e884 100644
--- a/testapi/testapi-client/testapiclient/projects.py
+++ b/testapi/testapi-client/testapiclient/projects.py
@@ -2,7 +2,7 @@ import json
from testapiclient import command
from testapiclient import config
-from testapiclient import httpClient
+from testapiclient import http_client
from testapiclient import identity
from testapiclient import user
@@ -19,7 +19,6 @@ class ProjectGet(command.Lister):
return parser
def take_action(self, parsed_args):
- http_client = httpClient.HTTPClient.get_Instance()
url = PROJECTS_URL
if parsed_args.name:
url = url + "?name=" + parsed_args.name
@@ -38,7 +37,6 @@ class ProjectGetOne(command.ShowOne):
return parser
def take_action(self, parsed_args):
- http_client = httpClient.HTTPClient.get_Instance()
url = PROJECTS_URL + "/" + parsed_args.name
project = http_client.get(url)
print project
@@ -57,7 +55,6 @@ class ProjectCreate(command.Command):
@identity.authenticate
def take_action(self, parsed_args):
- http_client = httpClient.HTTPClient.get_Instance()
response = http_client.post(ProjectCreate.projects_url,
user.User.session,
parsed_args.project)
@@ -79,7 +76,6 @@ class ProjectDelete(command.Command):
@identity.authenticate
def take_action(self, parsed_args):
- http_client = httpClient.HTTPClient.get_Instance()
projects = http_client.delete(
PROJECTS_URL + "/" + parsed_args.name,
user.User.session)
@@ -103,7 +99,6 @@ class ProjectPut(command.Command):
@identity.authenticate
def take_action(self, parsed_args):
- http_client = httpClient.HTTPClient.get_Instance()
projects = http_client.put(
PROJECTS_URL + "/" + parsed_args.name,
user.User.session,