Skip to content

Commit

Permalink
[JENKINS-31220] Fix upgrade from a version prior to 1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlatombe committed Oct 28, 2015
1 parent cd90bcf commit fd3af57
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -8,6 +8,8 @@
import hudson.model.TaskListener;
import hudson.util.ArgumentListBuilder;
import org.apache.commons.io.LineIterator;
import org.apache.commons.lang.StringUtils;

import org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint;
import org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint;
import org.jenkinsci.plugins.docker.commons.credentials.KeyMaterial;
Expand Down Expand Up @@ -173,7 +175,7 @@ public String runDetached(String image, String workdir, Map<String, String> volu
args.add("--link", link.getKey() + ":" + link.getValue());
}

if (net.length() > 0) {
if (StringUtils.isNotBlank(net)) {
args.add("--net", net);
}

Expand Down

0 comments on commit fd3af57

Please sign in to comment.