mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fixes bugs in iapp template (#33478)
Fixes upstream bugs that broke downstream. Also fixes a name matching error in the iApp's name
This commit is contained in:
parent
f60b8a3abb
commit
2b1f056881
2 changed files with 6 additions and 4 deletions
|
@ -240,10 +240,10 @@ class Parameters(AnsibleF5Parameters):
|
|||
# There is a bug in the iApp parser in the F5 SDK that prevents us from
|
||||
# using it in all cases to get the name of an iApp. So we'll use this
|
||||
# pattern for now and file a bug with the F5 SDK
|
||||
pattern = r'sys\s+application\s+template\s+(?P<path>\/\w+\/)?(?P<name>[\w.]+)'
|
||||
pattern = r'sys\s+application\s+template\s+(?P<path>\/[^\{}"\'*?|#]+\/)?(?P<name>[^\{}"\'*?|#]+)'
|
||||
matches = re.search(pattern, self.content)
|
||||
try:
|
||||
result = matches.group('name')
|
||||
result = matches.group('name').strip()
|
||||
except IndexError:
|
||||
result = None
|
||||
if result:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue