File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,15 +128,15 @@ function New-PDCClone {
128128 # Make up the data from the network path
129129 try {
130130 [uri ]$uri = New-Object System.Uri($Destination )
131- $networkHost = $uri.Host
131+ $uriHost = $uri.Host
132132 }
133133 catch {
134134 Stop-PSFFunction - Message " The destination path $Destination is not valid" - ErrorRecord $_ - Target $Destination
135135 return
136136 }
137137
138138 # Setup the computer object
139- $computer = [PsfComputer ]$networkHost
139+ $computer = [PsfComputer ]$uriHost
140140
141141 if (-not $computer.IsLocalhost ) {
142142 $command = " Convert-PDCLocalUncPathToLocalPath -UncPath '$ImageNetworkPath '"
Original file line number Diff line number Diff line change @@ -147,15 +147,15 @@ function New-PDCImage {
147147 # Make up the data from the network path
148148 try {
149149 [uri ]$uri = New-Object System.Uri($ImageNetworkPath )
150- $networkHost = $uri.Host
150+ $uriHost = $uri.Host
151151 }
152152 catch {
153153 Stop-PSFFunction - Message " The image network path $ImageNetworkPath is not valid" - ErrorRecord $_ - Target $ImageNetworkPath
154154 return
155155 }
156156
157157 # Setup the computer object
158- $computer = [PsfComputer ]$networkHost
158+ $computer = [PsfComputer ]$uriHost
159159
160160 if (-not $computer.IsLocalhost ) {
161161 $command = " Convert-PDCLocalUncPathToLocalPath -UncPath '$ImageNetworkPath '"
You can’t perform that action at this time.
0 commit comments