plumbum
plumbum copied to clipboard
AttributeError: 'list' object has no attribute 'strip'
https://github.com/tomerfiliba/plumbum/blob/15ad91166219b1fead21efd21309fb4ab968f638/plumbum/machines/session.py#L228
seems to expect a str
, but the call to cmd.formuate(1)
https://github.com/tomerfiliba/plumbum/blob/15ad91166219b1fead21efd21309fb4ab968f638/plumbum/machines/session.py#L224
above returns a list
.
Any example piece of code where this bug (it does look like a bug) gets triggered?
remote = SshMachine(...)
cmd = remote['echo']['hi']
sess = remote.session()
proc = sess.popen(cmd)
@henryiii
from plumbum import local
from plumbum.cmd import ls
s = local.session()
s.run(ls)