File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 20
20
## Upcoming Release
21
21
* Fixed an issue where What-If shows two resource group scopes with different casing
22
22
* Updated ` Export-AzResourceGroup ` to use the SDK.
23
+ * Added culture info to parse methods
23
24
24
25
## Version 3.0.0
25
26
* Fixed parsing bug
Original file line number Diff line number Diff line change 20
20
using Microsoft . WindowsAzure . Commands . Utilities . Common ;
21
21
using Newtonsoft . Json ;
22
22
using System ;
23
+ using System . Globalization ;
23
24
using System . IO ;
24
25
using System . Management . Automation ;
25
26
@@ -273,7 +274,7 @@ public override void ExecuteCmdlet()
273
274
}
274
275
// ensure that if ConditionVersion is empty in any way, it becomes null
275
276
ConditionVersion = string . IsNullOrEmpty ( ConditionVersion ) ? null : string . IsNullOrWhiteSpace ( ConditionVersion ) ? null : ConditionVersion ;
276
- double _conditionVersion = double . Parse ( ConditionVersion ?? "2.0" ) ;
277
+ double _conditionVersion = double . Parse ( ConditionVersion ?? "2.0" , CultureInfo . InvariantCulture ) ;
277
278
if ( _conditionVersion < 2.0 )
278
279
{
279
280
WriteExceptionError ( new ArgumentException ( "Argument -ConditionVersion must be greater or equal than 2.0" ) ) ;
You can’t perform that action at this time.
0 commit comments