forked from platypush/platypush
Removed two unneeded rows
This commit is contained in:
parent
4a6accf483
commit
9220b23471
1 changed files with 0 additions and 3 deletions
|
@ -4,12 +4,9 @@ from . import Pusher
|
|||
|
||||
def main(args=sys.argv[1:]):
|
||||
opts = Pusher.parse_build_args(args)
|
||||
|
||||
pusher = Pusher(config_file=opts.config, backend=opts.backend)
|
||||
|
||||
if opts.type == 'event':
|
||||
delattr(opts, 'type')
|
||||
print(opts.args)
|
||||
pusher.send_event(target=opts.target, type=opts.event, **opts.args)
|
||||
else:
|
||||
pusher.send_request(target=opts.target, action=opts.action, timeout=opts.timeout, **opts.args)
|
||||
|
|
Loading…
Reference in a new issue