Skip to content

Commit

Permalink
set default=False for force
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Xiao <[email protected]>
  • Loading branch information
chrisx8 committed Oct 30, 2023
1 parent 580dfc0 commit 44622e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/modules/podman_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

from __future__ import absolute_import, division, print_function

__metaclass__ = type


Expand Down Expand Up @@ -42,6 +41,7 @@
description:
- Remove all containers that use the network.
If the container is running, it is stopped and removed.
default: False
type: bool
gateway:
description:
Expand Down Expand Up @@ -231,7 +231,7 @@ def construct_command_from_params(self):

def _delete_action(self):
cmd = ['rm', self.params['name']]
if self.params.get('force', False):
if self.params['force']:
cmd += ['--force']
return [to_bytes(i, errors='surrogate_or_strict') for i in cmd]

Expand Down Expand Up @@ -655,7 +655,7 @@ def main():
name=dict(type='str', required=True),
disable_dns=dict(type='bool', required=False),
driver=dict(type='str', required=False),
force=dict(type='bool', required=False),
force=dict(type='bool', default=False),
gateway=dict(type='str', required=False),
internal=dict(type='bool', required=False),
ip_range=dict(type='str', required=False),
Expand Down

0 comments on commit 44622e3

Please sign in to comment.