mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Adds fixes to bigip_asm_policy (#33440)
Integrates some upstream changes that were made and fixes several spacing and testing errors
This commit is contained in:
@@ -556,11 +556,19 @@ class BaseManager(object):
|
||||
return True
|
||||
return False
|
||||
|
||||
def _file_is_missing(self):
|
||||
if not os.path.exists(self.want.file):
|
||||
return True
|
||||
return False
|
||||
|
||||
def create(self):
|
||||
task = None
|
||||
if self.want.active is None:
|
||||
self.want.update(dict(active=False))
|
||||
|
||||
if self._file_is_missing():
|
||||
raise F5ModuleError(
|
||||
"The specified ASM policy file does not exist"
|
||||
)
|
||||
self._set_changed_options()
|
||||
if self.client.check_mode:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user