File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public static string GetDeviceName()
116116 var deviceName = Environment . MachineName ;
117117 var isDefaultDeviceNameEc2 = IsEc2MachineName ( deviceName ) ;
118118
119- if ( Config . IsEc2 == true || isDefaultDeviceNameEc2 )
119+ if ( Config . IsEc2 == null || Config . IsEc2 == true || isDefaultDeviceNameEc2 )
120120 {
121121 var ec2InstanceId = GetEC2InstanceId ( ) ;
122122 if ( string . IsNullOrWhiteSpace ( ec2InstanceId ) == false )
@@ -193,7 +193,7 @@ public static string GetDeviceName()
193193 var deviceName = Process . GetCurrentProcess ( ) . MachineName ;
194194 var isDefaultDeviceNameEc2 = IsEc2MachineName ( deviceName ) ;
195195
196- if ( Config . IsEc2 == true || isDefaultDeviceNameEc2 )
196+ if ( Config . IsEc2 == null || Config . IsEc2 == true || isDefaultDeviceNameEc2 )
197197 {
198198 var instanceID_task = GetEC2InstanceId ( ) ;
199199 instanceID_task . Wait ( ) ;
You can’t perform that action at this time.
0 commit comments