Make opts var optional for docker driver methods

This commit is contained in:
Brian Cain 2019-02-25 15:29:50 -08:00
parent 627251a307
commit 67ea15126d
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 2 additions and 2 deletions

View File

@ -209,13 +209,13 @@ module VagrantPlugins
end
# @param[Array] opts - An array of flags used for listing networks
def prune_network(opts)
def prune_network(opts=nil)
output = execute('docker', 'network', 'prune', '--force', opts)
end
# @param[String] network - name of network to remove
# @param[Array] opts - An array of flags used for listing networks
def rm_network(networks, opts)
def rm_network(networks, opts=nil)
output = execute('docker', 'network', 'rm', network, opts)
end