Skip to content

Commit

Permalink
Remove use of remove NonEmptyArray property type
Browse files Browse the repository at this point in the history
Signed-off-by: Julien 'Lta' BALLET <[email protected]>
  • Loading branch information
elthariel committed Jun 7, 2019
1 parent 4e80cd6 commit e5e46bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/docker_swarm_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class DockerSwarmService < DockerSwarmBase

property :image, String, required: true
property :user, String, required: true, default: 'root'
property :networks, NonEmptyArray, required: true
property :networks, [Array, nil], required: true,
coerce: proc { |v| Array(v).empty? ? nil : Array(v) }
property :hostname, String

property :environment, Hash, default: {}
Expand Down

0 comments on commit e5e46bb

Please sign in to comment.