Skip to content

Commit 9be53f0

Browse files
committed
Fix & Update Tests
1 parent 164bbf3 commit 9be53f0

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

examples/compute-management/02-VirtualMachineCreation.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ echo -n "$subnetId" > "$BASEDIR/$groupName.subnetIdFile"
2222
printf "\n4. Create network interface with:\r\nsubId='%s' \r\n& \r\nsubnetId='$subnetId'.\n" "$subId"
2323
azure network interface create --name test --resourcegroupname "$groupName" --location "$location" --subnetid @"$BASEDIR/$groupName.subnetIdFile"
2424

25+
rm -f "$BASEDIR/$groupName.subnetIdFile"
26+
2527
nicId="/subscriptions/$subId/resourceGroups/$groupName/providers/Microsoft.Network/networkInterfaces/test"
2628

2729
vhdUri="https://$storageAccountName.blob.core.windows.net/$storageAccountName/$storageAccountName.vhd"

src/CLU/Microsoft.Azure.Commands.Compute/Extension/SetAzureVMExtensionCommand.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ protected override void ProcessRecord()
151151
this.Name,
152152
parameters);
153153

154-
var result = Mapper.Map<PSComputeLongRunningOperation>(op);
154+
// TODO: CLU
155+
var result = op;
156+
//var result = Mapper.Map<PSComputeLongRunningOperation>(op);
155157
WriteObject(result);
156158
});
157159
}

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Action/SaveAzureVMImageCommand.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,13 @@ protected override void ProcessRecord()
8484
this.Name,
8585
parameters);
8686

87-
var result = Mapper.Map<PSComputeLongRunningOperation>(op);
87+
// TODO: CLU
88+
var result = op;
89+
//var result = Mapper.Map<PSComputeLongRunningOperation>(op);
8890

8991
if (!string.IsNullOrWhiteSpace(this.Path))
9092
{
91-
File.WriteAllText(this.Path, result.Output);
93+
File.WriteAllText(this.Path, result.Output == null ? null : result.Output.ToString());
9294
}
9395

9496
WriteObject(result);

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Operation/NewAzureVMCommand.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ protected override void ProcessRecord()
8585
};
8686

8787
var op = this.VirtualMachineClient.CreateOrUpdate(this.ResourceGroupName, this.VM.Name, parameters);
88-
var result = Mapper.Map<PSComputeLongRunningOperation>(op);
88+
// TODO: CLU
89+
var result = op;
90+
//var result = Mapper.Map<PSComputeLongRunningOperation>(op);
8991
WriteObject(result);
9092
});
9193
}

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Operation/UpdateAzureVMCommand.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ protected override void ProcessRecord()
5454
};
5555

5656
var op = this.VirtualMachineClient.CreateOrUpdate(this.ResourceGroupName, this.VM.Name, parameters);
57-
var result = Mapper.Map<PSComputeLongRunningOperation>(op);
57+
// TODO: CLU
58+
var result = op;
59+
//var result = Mapper.Map<PSComputeLongRunningOperation>(op);
5860
WriteObject(result);
5961
});
6062
}

0 commit comments

Comments
 (0)