netdata/packaging: [ci skip] Wrong positioning of arguments
Pavlos Emm. Katsoulakis committed
Jul 10, 2019 at 18:10 UTC
a207476bd8a3153820af3ddd6800e3b7702db5aa
1 file changed
+2
-2
.travis/package_management/common.py
+2
-2
@@ -37,7 +37,7 @@ def run_command(container, command):
37
if command_result != 0:
38
raise Exception("Command failed with exit code %d" % command_result)
39
40
-def run_command_in_host(container, cmd):
40
+def run_command_in_host(cmd):
41
print("Issue command in host: %s" % str(cmd))
42
43
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
@@ -46,7 +46,7 @@ def run_command_in_host(container, cmd):
46
print('Error: ' + e.decode('ascii'))
47
print('code: ' + str(proc.returncode))
48
49
-def install_common_dependendencies():
49
+def install_common_dependendencies(container):
50
if str(os.environ["REPO_TOOL"]).count("zypper") == 1:
51
run_command(container, [os.environ["REPO_TOOL"], "clean", "-a"])
52
run_command(container, [os.environ["REPO_TOOL"], "--no-gpg-checks", "update", "-y"])