Skip to content

Commit 121d426

Browse files
authored
Fixing incorrect python CosmosDB template (#3576)
* cosmos db template fixes * cosmos db template fixes
1 parent 1e76a24 commit 121d426

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Azure.Functions.Cli/Actions/UserInputHandler.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ private static IDictionary<string, string> CreateLabelMap()
143143
{ "$httpTrigger_authLevel_label", "Auth Level" },
144144
{ "$queueTrigger_queueName_label", "Queue Name" },
145145
{ "$variables_storageConnStringLabel", "Storage Connection String" },
146-
{ "$cosmosDB_connection_label", "CosmosDB Connection String" },
147-
{ "$cosmosDB_databaseName_label", "CosmosDB Database Name" },
148-
{ "$cosmosDB_containerName_label", "CosmosDB Container Name" },
149-
{ "$cosmosDB_leaseContainerName_label", "CosmosDB Lease Container Name" },
150-
{ "$cosmosDB_createIfNotExists_label", "Create If Not Exists" },
146+
{ "$cosmosDBIn_connection_label", "CosmosDB Connection String" },
147+
{ "$cosmosDBIn_databaseName_label", "CosmosDB Database Name" },
148+
{ "$cosmosDBIn_containerName_label", "CosmosDB Container Name" },
149+
{ "$cosmosDBIn_leaseContainerName_label", "CosmosDB Lease Container Name" },
150+
{ "$cosmosDBIn_createContainerIfNotExists_label", "Create If Not Exists" },
151151
{ "$eventHubTrigger_connection_label", "EventHub Connection" },
152152
{ "$eventHubOut_path_label", "EventHub Out Path" },
153153
{ "$eventHubTrigger_consumerGroup_label", "EventHub Consumer Group" },

src/Azure.Functions.Cli/StaticResources/NewTemplate-userPrompts.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"name": "cosmosDBTrigger-connection",
106106
"value": "string",
107107
"resource": "DocumentDB",
108-
"label": "$cosmosDB_connection_label",
108+
"label": "$cosmosDBIn_connection_label",
109109
"help": "$cosmosDB_connection_help",
110110
"placeholder": "$variables_selectConnection"
111111
},
@@ -114,30 +114,30 @@
114114
"name": "cosmosDBTrigger-databaseName",
115115
"value": "string",
116116
"defaultValue": "",
117-
"label": "$cosmosDB_databaseName_label",
117+
"label": "$cosmosDBIn_databaseName_label",
118118
"help": "$cosmosDB_databaseName_help"
119119
},
120120
{
121121
"id": "cosmosDBTrigger-containerName",
122122
"name": "cosmosDBTrigger-containerName",
123123
"value": "string",
124124
"defaultValue": "",
125-
"label": "$cosmosDB_containerName_label",
125+
"label": "$cosmosDBIn_containerName_label",
126126
"help": "$cosmosDB_containerName_help"
127127
},
128128
{
129129
"id": "cosmosDBTrigger-leaseContainerName",
130130
"name": "cosmosDBTrigger-leaseContainerName",
131131
"value": "string",
132-
"label": "$cosmosDB_leaseContainerName_label",
132+
"label": "$cosmosDBIn_leaseContainerName_label",
133133
"help": "$cosmosDB_leaseContainer_help"
134134
},
135135
{
136136
"id": "cosmosDBTrigger-createLeaseContainerIfNotExists",
137137
"name": "cosmosDBTrigger-createLeaseContainerIfNotExists",
138138
"value": "boolean",
139139
"defaultValue": true,
140-
"label": "$cosmosDB_createIfNotExists_label",
140+
"label": "$cosmosDBIn_createContainerIfNotExists_label",
141141
"help": "$cosmosDB_createIfNotExists_help"
142142
},
143143
{

0 commit comments

Comments
 (0)