aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/console.py
diff options
context:
space:
mode:
authorDevendra2014-05-22 20:42:40 +0530
committerDevendra2014-05-22 20:42:40 +0530
commit26aca4f6f2c6167d5a83be83d1185c54522834e8 (patch)
treeb6a6a71c6302c5dfa759aff7b5040a426adfd063 /python/examples/console.py
parent32492b68b66a46bdbf6736e1ddd16a34dca12b9b (diff)
downloadpubnub-python-26aca4f6f2c6167d5a83be83d1185c54522834e8.tar.bz2
removing requirement of adding channel for grant and audit
Diffstat (limited to 'python/examples/console.py')
-rw-r--r--python/examples/console.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/python/examples/console.py b/python/examples/console.py
index 5d74517..6147d21 100644
--- a/python/examples/console.py
+++ b/python/examples/console.py
@@ -497,9 +497,6 @@ class DevConsole(Cmd):
def do_grant(self, command, opts):
opts.channel = self.default_channel \
if opts.channel is None else opts.channel
- if opts.channel is None:
- print_error("Missing channel")
- return
opts.auth_key = pubnub.auth_key \
if opts.auth_key is None else opts.auth_key
@@ -526,9 +523,6 @@ class DevConsole(Cmd):
def do_revoke(self, command, opts):
opts.channel = self.default_channel \
if opts.channel is None else opts.channel
- if opts.channel is None:
- print_error("Missing channel")
- return
opts.auth_key = pubnub.auth_key \
if opts.auth_key is None else opts.auth_key
@@ -549,9 +543,6 @@ class DevConsole(Cmd):
def do_audit(self, command, opts):
opts.channel = self.default_channel \
if opts.channel is None else opts.channel
- if opts.channel is None:
- print_error("Missing channel")
- return
opts.auth_key = pubnub.auth_key \
if opts.auth_key is None else opts.auth_key