File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/ResourceManager/Common/Commands.Common.Strategies Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ public static async Task<TModel> RunAsync<TModel>(
54
54
// read current Azure state.
55
55
var current = await config . GetStateAsync ( client , asyncCmdlet . CancellationToken ) ;
56
56
// update location.
57
- parameters . Location = current . UpdateLocation ( parameters . Location , config ) ;
57
+ parameters . Location =
58
+ parameters . Location ?? current . GetLocation ( config ) ?? parameters . DefaultLocation ;
58
59
// update a DAG of configs.
59
60
config = await parameters . CreateConfigAsync ( ) ;
60
61
// create a target.
@@ -77,11 +78,6 @@ public static async Task<TModel> RunAsync<TModel>(
77
78
return newState . Get ( config ) ?? current . Get ( config ) ;
78
79
}
79
80
80
- static string UpdateLocation (
81
- this IState current , string location , IResourceConfig config )
82
- => location ?? current . GetLocation ( config ) ?? "eastus" ;
83
-
84
-
85
81
static string ToPowerShellString ( object value )
86
82
{
87
83
if ( value == null )
You can’t perform that action at this time.
0 commit comments