commit | f3a2d8552b4976d6cd987970d6a4e4fbf85205c9 | [log] [tgz] |
---|---|---|
author | Filip Pytloun <fpytloun@mirantis.com> | Wed Mar 22 17:10:39 2017 +0000 |
committer | Gerrit Code Review <gerrit2@8d47cb36f245> | Wed Mar 22 17:10:40 2017 +0000 |
tree | e76cec83a131d9e161c2ab2d1eeee5f60d40ac7a | |
parent | 222c0be9264e7de4c7e2e65006f257a820a36812 [diff] | |
parent | 34e5c94d3437871a08af31fb1ffa6b9a0827abc9 [diff] |
Merge "Add only source.changes"
diff --git a/src/com/mirantis/mk/Ssh.groovy b/src/com/mirantis/mk/Ssh.groovy index 4526d6d..8276dde 100644 --- a/src/com/mirantis/mk/Ssh.groovy +++ b/src/com/mirantis/mk/Ssh.groovy
@@ -26,8 +26,13 @@ host = result.group(1) port = 22 } else { + // test for protocol + if(url.indexOf("://") == -1){ + url="ssh://" + url + } parsed = new URI(url) host = parsed.host + println(host) port = parsed.port && parsed.port > 0 ? parsed.port: 22 } return [host,port]