Improved offline deployments handling during salt communication

Change-Id: I810b76acd97c1881f22a379b30658996d9e01317
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index c1aaacb..018d9d4 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -722,7 +722,8 @@
     if(!offlineDeployment){
       try {
         //TODO: remove wget after global env prop enforcments
-        offlineDeployment = sh(script: "wget -q -T 10 --spider http://google.com", returnStatus: true) != 0
+        def netcheckResult = sh(script: "wget -q -T 10 --spider http://google.com", returnStatus: true)
+        offlineDeployment = netcheckResult != 0 && netcheckResult <= 5
       } catch(Exception e) {
         def common = new com.mirantis.mk.Common()
         common.warningMsg("You might be offline, will use pepper with option --json instead of option --json-file")