File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/ResourceManager/Version2016_09_01 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -300,9 +300,9 @@ protected override void InitializeQosEvent()
300300 {
301301 AzVersion = this . LoadAzVersion ( ) ;
302302 UserAgent = new ProductInfoHeaderValue ( "AzurePowershell" , string . Format ( "Az{0}" , AzVersion ) ) . ToString ( ) ;
303- string HostEnv = Environment . GetEnvironmentVariable ( "AZUREPS_HOST_ENVIRONMENT" ) ;
304- if ( ! String . IsNullOrWhiteSpace ( HostEnv ) )
305- UserAgent += string . Format ( ";{0}" , HostEnv . Trim ( ) ) ;
303+ string hostEnv = Environment . GetEnvironmentVariable ( "AZUREPS_HOST_ENVIRONMENT" ) ;
304+ if ( ! String . IsNullOrWhiteSpace ( hostEnv ) )
305+ UserAgent += string . Format ( ";{0}" , hostEnv . Trim ( ) ) ;
306306 }
307307 _qosEvent . AzVersion = AzVersion ;
308308 _qosEvent . UserAgent = UserAgent ;
You can’t perform that action at this time.
0 commit comments