From 091baa2359573a410fd60285fb9dcab3b19d99e7 Mon Sep 17 00:00:00 2001 From: wanghao Date: Fri, 14 Sep 2018 15:33:02 +0800 Subject: [PATCH] Update the client version in samples Now we have deprecated the v1 api for a while. The client version in samples shoud be updated too. Change-Id: Ib7789f3478a68522f44974eece6685ee8ef40614 Closes-Bug: #1792528 --- samples/python-zaqarclient/receive_message/zaqar_sample.py | 4 ++-- samples/python-zaqarclient/send_message/zaqar_sample.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/python-zaqarclient/receive_message/zaqar_sample.py b/samples/python-zaqarclient/receive_message/zaqar_sample.py index 5fb0497ab..70117c0ef 100755 --- a/samples/python-zaqarclient/receive_message/zaqar_sample.py +++ b/samples/python-zaqarclient/receive_message/zaqar_sample.py @@ -9,7 +9,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. -from zaqarclient.queues.v1 import client +from zaqarclient.queues.v2 import client client = client.Client('http://localhost:8888', conf={ 'auth_opts': { @@ -20,7 +20,7 @@ client = client.Client('http://localhost:8888', conf={ 'os_project_id': '7530fad032ca431e9dc8ed4a5de5d99c' } } -}, version=2) +}) queue = client.queue('SampleQueue') diff --git a/samples/python-zaqarclient/send_message/zaqar_sample.py b/samples/python-zaqarclient/send_message/zaqar_sample.py index af39bcd44..e56e23205 100755 --- a/samples/python-zaqarclient/send_message/zaqar_sample.py +++ b/samples/python-zaqarclient/send_message/zaqar_sample.py @@ -9,7 +9,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. -from zaqarclient.queues.v1 import client +from zaqarclient.queues.v2 import client client = client.Client('http://localhost:8888', conf={ 'auth_opts': { @@ -20,7 +20,7 @@ client = client.Client('http://localhost:8888', conf={ 'os_project_id': '7530fad032ca431e9dc8ed4a5de5d99c' } } -}, version=2) +}) queue = client.queue('SampleQueue')