Skip to content

Commit

Permalink
Warning message added #733
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapbrasser committed Mar 11, 2021
1 parent 25178ef commit f0649ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Rubrik/Public/New-RubrikMount.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ function New-RubrikMount
if(-not $PSBoundParameters.ContainsKey('DisableNetwork')) { $Resources.Body.Remove('disableNetwork') }
if(-not $PSBoundParameters.ContainsKey('RemoveNetworkDevices')) { $Resources.Body.Remove('removeNetworkDevices') }
if(-not $PSBoundParameters.ContainsKey('PowerOn')) { $Resources.Body.Remove('powerOn') }

if ($id -match ':') {
Write-Warning -Message ('"{0}" specified as ID, the ID should be a snapshot ID not an object ID' -f $Id)
}

$uri = New-URIString -server $Server -endpoint ($resources.URI) -id $id
$uri = Test-QueryParam -querykeys ($resources.Query.Keys) -parameters ((Get-Command $function).Parameters.Values) -uri $uri
Expand Down

0 comments on commit f0649ee

Please sign in to comment.