Skip to content

Commit

Permalink
Fixing image argument
Browse files Browse the repository at this point in the history
  • Loading branch information
purwandi committed Jul 8, 2021
1 parent 28a7fcf commit a0f3949
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/com/zepline/Image.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ class Image {
String args = ""

Image(def config) {
if (config.name) {
this.name = config.name
this.args = config.args
} else {
this.name = config
}
try {
if (config.name) {
this.name = config.name
this.args = config.args
} else {
this.name = config
}
} catch (Exception e) {}
}
}

0 comments on commit a0f3949

Please sign in to comment.