[Asterisk-code-review] asterisk.py: fix twisted.internet.utils.getProcessOutputAndV... (testsuite[master])

Timo Teräs asteriskteam at digium.com
Thu Nov 10 02:09:34 CST 2016


Timo Teräs has uploaded a new change for review. ( https://gerrit.asterisk.org/4364 )

Change subject: asterisk.py: fix twisted.internet.utils.getProcessOutputAndValue use
......................................................................

asterisk.py: fix twisted.internet.utils.getProcessOutputAndValue use

According to documentation[1] the 'args' first string should *NOT* be
the executable's name.

[1] http://twistedmatrix.com/documents/16.5.0/api/twisted.internet.utils.html

Change-Id: Ic05b398a73e77a1e88f1fbef6ddb71024b704d4b
---
M lib/python/asterisk/asterisk.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/64/4364/1

diff --git a/lib/python/asterisk/asterisk.py b/lib/python/asterisk/asterisk.py
index b98f2ce..bfde74f 100755
--- a/lib/python/asterisk/asterisk.py
+++ b/lib/python/asterisk/asterisk.py
@@ -196,7 +196,7 @@
 
         self._deferred = defer.Deferred()
         deferred = utils.getProcessOutputAndValue(self._cmd[0],
-                                                  self._cmd,
+                                                  self._cmd[1:],
                                                   env=os.environ)
         deferred.addCallbacks(callback=__cli_output_callback,
                               errback=__cli_error_callback,)

-- 
To view, visit https://gerrit.asterisk.org/4364
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic05b398a73e77a1e88f1fbef6ddb71024b704d4b
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Timo Teräs <timo.teras at iki.fi>



More information about the asterisk-code-review mailing list