Skip to content

Commit d4cbb09

Browse files
Updated xml file and renamed error code resource from NewAppPackageNoPathSpecified to NewApplicationPackageNoPathSpecified
1 parent 441fdbc commit d4cbb09

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/ResourceManager/AzureBatch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9730,7 +9730,7 @@
97309730
<command:noun>AzureRmBatchApplicationPackage</command:noun>
97319731
<dev:version></dev:version>
97329732
</command:details>
9733-
<maml:description>Specifies the file to be uploaded as the application package binary file
9733+
<maml:description>
97349734
<maml:para>The New-AzureRmBatchApplicationPackage cmdlet creates a new application package in an Azure Batch account.</maml:para>
97359735
</maml:description>
97369736
<!-- Cmdlet syntax section-->
@@ -9871,7 +9871,7 @@
98719871
</dev:type>
98729872
<dev:defaultValue></dev:defaultValue>
98739873
</command:parameter>
9874-
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="named">
9874+
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
98759875
<maml:name>FilePath</maml:name>
98769876
<maml:description>
98779877
<maml:para>Specifies the file to be uploaded as the application package binary file. If the -ActivateOnly switch is present, do not specify FilePath.</maml:para>

src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Applications.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public virtual PSApplicationPackage UploadAndActivateApplicationPackage(
186186
{
187187
if (string.IsNullOrEmpty(filePath))
188188
{
189-
throw new ArgumentNullException("filePath", Resources.NewAppPackageNoPathSpecified);
189+
throw new ArgumentNullException("filePath", Resources.NewApplicationPackageNoPathSpecified);
190190
}
191191

192192
if (!File.Exists(filePath))

src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@
442442
<data name="FileNotFound" xml:space="preserve">
443443
<value>File not found {0}.</value>
444444
</data>
445-
<data name="NewAppPackageNoPathSpecified" xml:space="preserve">
445+
<data name="NewApplicationPackageNoPathSpecified" xml:space="preserve">
446446
<value>When uploading a new application package, you must specify a value for the FilePath parameter.</value>
447447
</data>
448448
<data name="FailedToUpload" xml:space="preserve">

0 commit comments

Comments
 (0)