Skip to content

Commit 0e6e020

Browse files
Merge pull request #127 from craigcomstock/ENT-12687
Added useful information when sudo fails during info command
2 parents ce1a1dd + c1ae169 commit 0e6e020

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cf_remote/remote.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ def get_info(host, *, users=None, connection=None):
218218
connection,
219219
hide=True,
220220
)
221-
discovery = parse_envfile(ssh_sudo(connection, "bash nt-discovery.sh"))
221+
discovery = parse_envfile(
222+
ssh_sudo(connection, "bash nt-discovery.sh", errors=True)
223+
)
222224

223225
if discovery is None:
224226
programmer_error("Couldn't parse NT discovery file")

0 commit comments

Comments
 (0)