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
This commit is contained in:
wanghao 2018-09-14 15:33:02 +08:00
parent 331a984614
commit 091baa2359
2 changed files with 4 additions and 4 deletions

View File

@ -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')

View File

@ -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')