Skip to content

Commit ad41762

Browse files
rafal-lalmartin-mat
authored andcommitted
Fix wronly removed #{} in PR #31
Signed-off-by: Rafal Lal <rafal.lal@tietoevry.com>
1 parent cf982c3 commit ad41762

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cluster_tools.cr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module ClusterTools
7979
cluster_tools_pod_name = pods[0].dig?("metadata", "name") if pods[0]?
8080
Log.info { "cluster_tools_pod_name: #{cluster_tools_pod_name}"}
8181

82-
KubectlClient::Utils.exec(cluster_tools_pod_name, cli, namespace: self.namespace!)
82+
KubectlClient::Utils.exec("#{cluster_tools_pod_name}", cli, namespace: self.namespace!)
8383
end
8484

8585
def self.exec_by_node(cli : String, node_name : String) : KubectlClient::CMDResult?
@@ -111,7 +111,7 @@ module ClusterTools
111111
# 'pods_by_nodes' fetches pods from all namespaces so they
112112
# do not have to be passed the namespace to perform operations.
113113
pod_name = get_cluster_tools_pod_on_node(node)
114-
exec = KubectlClient::Utils.exec(pod_name, cli, namespace: self.namespace)
114+
exec = KubectlClient::Utils.exec("#{pod_name}", cli, namespace: self.namespace)
115115
Log.debug { "ClusterTools exec: #{exec}" }
116116
exec
117117
end
@@ -120,7 +120,7 @@ module ClusterTools
120120
# 'pods_by_nodes' fetches pods from all namespaces so they
121121
# do not have to be passed the namespace to perform operations.
122122
pod_name = get_cluster_tools_pod_on_node(node)
123-
exec = KubectlClient::Utils.exec_bg(pod_name, cli, namespace: self.namespace)
123+
exec = KubectlClient::Utils.exec_bg("#{pod_name}", cli, namespace: self.namespace)
124124
Log.debug { "ClusterTools exec: #{exec}" }
125125
exec
126126
end

0 commit comments

Comments
 (0)