Skip to content

Commit a96564f

Browse files
committed
Merge branch 'release-6.0.0' of github.com:/azure/azure-powershell into release-6.0.0
2 parents 8ed5ca0 + a2c757d commit a96564f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Common/Commands.Common.Authentication/AzureSessionInitializer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,14 @@ static ContextAutosaveSettings InitializeSessionSettings(IDataStore store, strin
105105
store.CreateDirectory(directoryPath);
106106
}
107107
string autoSavePath = Path.Combine(profileDirectory, settingsFile);
108-
store.WriteFile(autoSavePath, JsonConvert.SerializeObject(result));
109108
result.Mode = ContextSaveMode.CurrentUser;
109+
store.WriteFile(autoSavePath, JsonConvert.SerializeObject(result));
110110
}
111111
}
112112
catch
113113
{
114114
// ignore exceptions in reading settings from disk
115+
result.Mode = ContextSaveMode.Process;
115116
}
116117

117118
return result;

0 commit comments

Comments
 (0)