From 1b5b1cbfe8cb24001c972070fbaf73e5c71705b2 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 4 Jun 2015 12:08:27 -0400 Subject: [PATCH] Add missing state parameter --- cloud/openstack/os_network.py | 1 + cloud/openstack/os_subnet.py | 1 + 2 files changed, 2 insertions(+) diff --git a/cloud/openstack/os_network.py b/cloud/openstack/os_network.py index b77a7e331a4..18e0aaa9a27 100644 --- a/cloud/openstack/os_network.py +++ b/cloud/openstack/os_network.py @@ -66,6 +66,7 @@ def main(): name=dict(required=True), shared=dict(default=False, type='bool'), admin_state_up=dict(default=True, type='bool'), + state=dict(default='present', choices=['absent', 'present']), ) module_kwargs = openstack_module_kwargs() diff --git a/cloud/openstack/os_subnet.py b/cloud/openstack/os_subnet.py index 75bf7b33313..2fdb4e0dd6d 100644 --- a/cloud/openstack/os_subnet.py +++ b/cloud/openstack/os_subnet.py @@ -173,6 +173,7 @@ def main(): allocation_pool_start=dict(default=None), allocation_pool_end=dict(default=None), host_routes=dict(default=None, type='list'), + state=dict(default='present', choices=['absent', 'present']), ) module_kwargs = openstack_module_kwargs()