Update modified URI path, and make the client work again

With the recent change to the URI path, as in the commit
Iad2bcacbd2d3b8d4d89919d0bd9b71bdd419092c
magnetodbclient was broken. This change fixes it.

Change-Id: I73454cf8c1c7ec9f2902fc987b86dddbf26d110d
This commit is contained in:
Rushi Agrawal 2014-12-10 06:13:10 +00:00
parent ccf0d270c4
commit 6a0dd74e65
1 changed files with 4 additions and 5 deletions

View File

@ -60,17 +60,16 @@ class Client(client_base.ClientBase):
"""
base_path = "/data"
tables_path = base_path + "/tables"
table_path = base_path + "/tables/%s"
tables_path = "/tables"
table_path = "/tables/%s"
put_item_path = table_path + "/put_item"
update_item_path = table_path + "/update_item"
delete_item_path = table_path + "/delete_item"
get_item_path = table_path + "/get_item"
query_path = table_path + "/query"
scan_path = table_path + "/scan"
batch_write_item_path = base_path + "/batch_write_item"
batch_get_item_path = base_path + "/batch_get_item"
batch_write_item_path = "/batch_write_item"
batch_get_item_path = "/batch_get_item"
def create_table(self, request_body):
"""Create table."""