mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix in function app (#55134)
This commit is contained in:
parent
a40c1ed811
commit
b0cc3072dc
1 changed files with 10 additions and 5 deletions
|
@ -344,11 +344,16 @@ class AzureRMFunctionApp(AzureRMModuleBase):
|
||||||
"""Construct the necessary app settings required for an Azure Function App"""
|
"""Construct the necessary app settings required for an Azure Function App"""
|
||||||
|
|
||||||
function_app_settings = []
|
function_app_settings = []
|
||||||
for key in ['AzureWebJobsStorage', 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING', 'AzureWebJobsDashboard']:
|
|
||||||
function_app_settings.append(NameValuePair(name=key, value=self.storage_connection_string))
|
if self.container_settings is None:
|
||||||
function_app_settings.append(NameValuePair(name='FUNCTIONS_EXTENSION_VERSION', value='~1'))
|
for key in ['AzureWebJobsStorage', 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING', 'AzureWebJobsDashboard']:
|
||||||
function_app_settings.append(NameValuePair(name='WEBSITE_NODE_DEFAULT_VERSION', value='6.5.0'))
|
function_app_settings.append(NameValuePair(name=key, value=self.storage_connection_string))
|
||||||
function_app_settings.append(NameValuePair(name='WEBSITE_CONTENTSHARE', value=self.name))
|
function_app_settings.append(NameValuePair(name='FUNCTIONS_EXTENSION_VERSION', value='~1'))
|
||||||
|
function_app_settings.append(NameValuePair(name='WEBSITE_NODE_DEFAULT_VERSION', value='6.5.0'))
|
||||||
|
function_app_settings.append(NameValuePair(name='WEBSITE_CONTENTSHARE', value=self.name))
|
||||||
|
else:
|
||||||
|
function_app_settings.append(NameValuePair(name='FUNCTIONS_EXTENSION_VERSION', value='~2'))
|
||||||
|
|
||||||
return function_app_settings
|
return function_app_settings
|
||||||
|
|
||||||
def aggregated_app_settings(self):
|
def aggregated_app_settings(self):
|
||||||
|
|
Loading…
Reference in a new issue