This commit is contained in:
Petri Asikainen 2021-01-17 06:48:05 +02:00
parent c3cb7d14b6
commit f688b32c50
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ function Get-ParameterValue {
# The $PSBoundParameters for the caller -- DO NOT pass this (dot-source Get-ParameterValues instead)
$BoundParameters = $PSBoundParameters,
[string[]]$DefaultExcludeParameter = @("id", "url", "apiKey", 'Debug', 'Verbose')
[string[]]$DefaultExcludeParameter = @("url", "apiKey", 'Debug', 'Verbose')
)
if ($MyInvocation.Line[($MyInvocation.OffsetInLine - 1)] -ne '.') {

View file

@ -131,7 +131,7 @@ function Get-Asset() {
}
if ($asset_tag) {
if ( $search -or $asset_serial) {
if ( $search -or $asset_serial -or $id) {
Throw "[$($MyInvocation.MyCommand.Name)] Please specify only one of -search , -asset_tag or -asset_serial parameter"
}
$apiuri= "$url/api/v1/hardware/bytag/$asset_tag"