mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix for function app settings (#54662)
This commit is contained in:
parent
11e3cc3cab
commit
c85e3e0794
2 changed files with 14 additions and 4 deletions
|
@ -280,10 +280,18 @@ class AzureRMFunctionApp(AzureRMModuleBase):
|
||||||
|
|
||||||
function_app_settings = self.necessary_functionapp_settings()
|
function_app_settings = self.necessary_functionapp_settings()
|
||||||
for app_setting_key in self.app_settings:
|
for app_setting_key in self.app_settings:
|
||||||
function_app_settings.append(NameValuePair(
|
found_setting = None
|
||||||
name=app_setting_key,
|
for s in function_app_settings:
|
||||||
value=self.app_settings[app_setting_key]
|
if s.name == app_setting_key:
|
||||||
))
|
found_setting = s
|
||||||
|
break
|
||||||
|
if found_setting:
|
||||||
|
found_setting.value = self.app_settings[app_setting_key]
|
||||||
|
else:
|
||||||
|
function_app_settings.append(NameValuePair(
|
||||||
|
name=app_setting_key,
|
||||||
|
value=self.app_settings[app_setting_key]
|
||||||
|
))
|
||||||
return function_app_settings
|
return function_app_settings
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
app_settings:
|
app_settings:
|
||||||
hello: world
|
hello: world
|
||||||
things: more stuff
|
things: more stuff
|
||||||
|
FUNCTIONS_EXTENSION_VERSION: "~2"
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
- name: assert the function with app settings was created
|
- name: assert the function with app settings was created
|
||||||
|
@ -64,6 +65,7 @@
|
||||||
app_settings:
|
app_settings:
|
||||||
hello: world
|
hello: world
|
||||||
things: more stuff
|
things: more stuff
|
||||||
|
FUNCTIONS_EXTENSION_VERSION: "~2"
|
||||||
another: one
|
another: one
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue