Skip to content

Commit 7e23fde

Browse files
authored
Merge pull request #176 from craigcomstock/ent-13848
ent-13848: fix cf-remote info and install commands broken when run via vagrant shell provisioner
2 parents d87870d + c8b316a commit 7e23fde

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cf_remote/remote.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def get_info(host, *, users=None, connection=None):
216216
data["ssh_user"] = user
217217

218218
systeminfo = ssh_cmd(connection, "systeminfo")
219-
if systeminfo:
219+
if systeminfo and "command not found" not in systeminfo:
220220
data["os"] = "windows"
221221
data["systeminfo"] = parse_systeminfo(systeminfo)
222222
data["package_tags"] = ["x86_64", "msi"]
@@ -225,6 +225,7 @@ def get_info(host, *, users=None, connection=None):
225225
data["agent"] = agent
226226
version_cmd = powershell("{} -V".format(agent))
227227
data["agent_version"] = parse_version(ssh_cmd(connection, version_cmd))
228+
data["role"] = "client"
228229
else:
229230
data["os"] = "unix"
230231

0 commit comments

Comments
 (0)