Removed offline state checking
Change-Id: I162fd093523965cd6a7c42d307e9e8034c0064ab
diff --git a/src/com/mirantis/mk/Python.groovy b/src/com/mirantis/mk/Python.groovy
index 876299e..e670013 100644
--- a/src/com/mirantis/mk/Python.groovy
+++ b/src/com/mirantis/mk/Python.groovy
@@ -30,10 +30,9 @@
sh(returnStdout: true, script: virtualenv_cmd)
if(!env.getEnvironment().containsKey("OFFLINE_DEPLOYMENT") || !env["OFFLINE_DEPLOYMENT"].toBoolean()){
try {
- //TODO: remove wget after global env prop enforcments
- runVirtualenvCommand(path, "wget -q -T 10 --spider http://google.com && pip install -U setuptools pip")
+ runVirtualenvCommand(path, "pip install -U setuptools pip")
} catch(Exception e) {
- common.warningMsg("Setuptools and pip cannot be updated, you might be offline")
+ common.warningMsg("Setuptools and pip cannot be updated, you might be offline but OFFLINE_DEPLOYMENT global property not initialized!")
}
}
if (reqs_path==null) {
@@ -44,7 +43,7 @@
writeFile file: "${path}/requirements.txt", text: args
reqs_path = "${path}/requirements.txt"
}
- runVirtualenvCommand(path, "pip install -r ${reqs_path}")
+ runVirtualenvCommand(path, "pip install -r ${reqs_path}", true)
}
/**