Skip to content

Commit 86e1f10

Browse files
author
Michael Mantos
committed
WIN-230 - Fix string instance id for non-netstandard
1 parent e5d2e4b commit 86e1f10

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Src/StackifyLib/Models/EnvironmentDetail.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,9 @@ public static string GetDeviceName()
123123
if (Config.IsEc2 == null || Config.IsEc2 == true || isDefaultDeviceNameEc2)
124124
{
125125
var instanceID_task = GetEC2InstanceId();
126-
instanceID_task.Wait();
127-
if (string.IsNullOrWhiteSpace(instanceID_task.Result) == false)
126+
if (string.IsNullOrWhiteSpace(instanceID_task) == false)
128127
{
129-
deviceName = instanceID_task.Result;
128+
deviceName = instanceID_task;
130129
}
131130
}
132131

0 commit comments

Comments
 (0)