Skip to content

Commit

Permalink
should not try to use existed module version for new modules (Azure#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
dolauli authored Jun 9, 2021
1 parent df04152 commit 914fa40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/Gen2Master/MoveFromGeneration2Master.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ Function Move-Generation2Master {
$Psd1Version = $Psd1Metadata.ModuleVersion
}
$Psd1Metadata = Import-LocalizedData -BaseDirectory $SourcePath -FileName "Az.$ModuleName.psd1"
$Psd1Metadata.ModuleVersion = $Psd1Version
if ($Null -ne $Psd1Version) {
$Psd1Metadata.ModuleVersion = $Psd1Version
}
If ($Null -ne $ModuleGuid) {
$Psd1Metadata.GUID = $ModuleGuid
}
Expand Down

0 comments on commit 914fa40

Please sign in to comment.