commit | a02d502948950587a217f0f1078c428303695834 | [log] [tgz] |
---|---|---|
author | Filip Pytloun <filip@pytloun.cz> | Mon Aug 14 11:17:55 2017 +0200 |
committer | Filip Pytloun <filip@pytloun.cz> | Mon Aug 14 11:17:55 2017 +0200 |
tree | 70dcc966eca7cc8b18900084d569a1f2a97be948 | |
parent | 0a898763b8dc142938b76c423dae7c92b5abf0f2 [diff] [blame] |
Fix parsing git-like url Change-Id: I864a088eb554da25cee6a77de82d70e5a4df3afa
diff --git a/src/com/mirantis/mk/Ssh.groovy b/src/com/mirantis/mk/Ssh.groovy index 5fa3786..0f6c47f 100644 --- a/src/com/mirantis/mk/Ssh.groovy +++ b/src/com/mirantis/mk/Ssh.groovy
@@ -19,7 +19,7 @@ @NonCPS def getKnownHost(url){ // test for git@github.com:organization/repository like URLs - def p = ~/.+@(.+\..+)\:{1}.*/ + def p = ~/[a-z0-9\._\-]+@(.+\..+)\:{1}.*/ def result = p.matcher(url) def host = "" if (result.matches()) {