File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/ResourceManager/Compute
Commands.Compute.Test/ScenarioTests Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -633,6 +633,8 @@ function Test-VirtualMachinePIRv2
633
633
$p.StorageProfile.SourceImage = $null ;
634
634
$imgRef = Get-DefaultCRPImage ;
635
635
$p = Set-AzureVMSourceImage - VM $p - ImageReference $imgRef ;
636
+ Assert-True { $p.ImageReference -ne $null };
637
+ Assert-True { $p.SourceImageId -eq $null };
636
638
637
639
# TODO: Remove Data Disks for now
638
640
$p.StorageProfile.DataDisks = $null ;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public ImageReference ImageReference
76
76
{
77
77
get
78
78
{
79
- if ( this . StorageProfile != null && this . StorageProfile . SourceImage != null )
79
+ if ( this . StorageProfile != null )
80
80
{
81
81
return this . StorageProfile . ImageReference ;
82
82
}
@@ -89,7 +89,7 @@ public OSDisk OSDisk
89
89
{
90
90
get
91
91
{
92
- if ( this . StorageProfile != null && this . StorageProfile . OSDisk != null )
92
+ if ( this . StorageProfile != null )
93
93
{
94
94
return this . StorageProfile . OSDisk ;
95
95
}
You can’t perform that action at this time.
0 commit comments