Skip to content

Commit ef7ece5

Browse files
authored
Merge pull request #25 from SourceOS-Linux/agent/cloudshell-fog-integration-v2
agent/cloudshell-fog-integration-v2
2 parents ffe3188 + fc7bda9 commit ef7ece5

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

assets/sourceos/bin/turtle-cloudfog

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,22 @@ set -eu
44

55
bin_dir="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
66
agentctl="$bin_dir/turtle-agentctl"
7-
if [ ! -x "$agentctl" ]; then
8-
agentctl="turtle-agentctl"
9-
fi
107

118
cmd="${1:-surfaces}"
129
case "$cmd" in
1310
surfaces)
1411
shift || true
15-
exec "$agentctl" --stdio cloudfog-surfaces "$@"
12+
exec python3 "$agentctl" --stdio cloudfog-surfaces "$@"
1613
;;
1714
inspect)
1815
shift || true
19-
exec "$agentctl" --stdio cloudfog-inspect "$@"
16+
exec python3 "$agentctl" --stdio cloudfog-inspect "$@"
2017
;;
2118
request-execution)
2219
shift || true
2320
surface="${1:-cloudfog/local-devshell}"
2421
shift || true
25-
exec "$agentctl" --stdio request-surface-execution "$surface" "$@"
22+
exec python3 "$agentctl" --stdio request-surface-execution "$surface" "$@"
2623
;;
2724
*)
2825
echo "usage: turtle-cloudfog [surfaces|inspect <surface>|request-execution <surface> -- <command>]" >&2

0 commit comments

Comments
 (0)