Skip to content

Commit

Permalink
Remove use of Boolean in property in favor of [TrueClass, FalseClass]
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 80f4d3e commit 4e80cd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/docker_swarm_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DockerSwarmManager < DockerSwarmNodeBase
# Resource properties
resource_name :docker_swarm_manager

property :first_manager, Boolean, default: false
property :first_manager, [TrueClass, FalseClass], default: false

declare_action_class.class_eval do
def whyrun_supported?
Expand Down
2 changes: 1 addition & 1 deletion libraries/docker_swarm_node_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class DockerSwarmNodeBase < DockerSwarmBase

property :join_address, String
property :join_token, String
property :force_leave, Boolean, default: true
property :force_leave, [TrueClass, FalseClass], default: true

property :drain_opts, Hash, default: {}

Expand Down
2 changes: 1 addition & 1 deletion libraries/docker_swarm_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class DockerSwarmService < DockerSwarmBase
property :restart_delay, Integer, required: true, default: 1
property :restart_attempts, Integer, required: true, default: 3

property :global, Boolean, required: true, default: false
property :global, [TrueClass, FalseClass], required: true, default: false
property :replicas, Integer, default: 1
property :ports, Array, default: []
property :labels, Hash, default: {}
Expand Down

0 comments on commit 4e80cd6

Please sign in to comment.