License PowerCLI-Examples-Scripts repository under BSD-2 Clause (#462)
As part of the VMware open source program, we have to update this repository with the correct license and copyright information. We add the BSD-2 Clause License for this repository. We mark all source code provided by VMware with the Copyright notice under BSD-2 Clause license. * Update repository license to BSD 2-Clause License * Update Copyright
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
<#
|
||||
Copyright 2021 VMware, Inc.
|
||||
SPDX-License-Identifier: BSD-2-Clause
|
||||
#>
|
||||
|
||||
#
|
||||
# Module manifest for module 'VMware.HCX'
|
||||
#
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
<#
|
||||
Copyright 2021 VMware, Inc.
|
||||
SPDX-License-Identifier: BSD-2-Clause
|
||||
#>
|
||||
Function Connect-HcxServer {
|
||||
<#
|
||||
.NOTES
|
||||
@@ -1057,7 +1061,7 @@ Function Set-HcxLocation {
|
||||
|
||||
if(-not $cityDetails) {
|
||||
Write-Host -ForegroundColor Red "Invalid input for City and/or Country, please provide the exact input from Get-HcxCity cmdlet"
|
||||
break
|
||||
break
|
||||
}
|
||||
|
||||
$locationConfig = @{
|
||||
@@ -1089,7 +1093,7 @@ Function Set-HcxLocation {
|
||||
if($results.StatusCode -eq 204) {
|
||||
Write-Host -ForegroundColor Green "Successfully registered datacenter location $City to HCX Manager"
|
||||
} else {
|
||||
Write-Error "Failed to registerd datacenter location in HCX Manager"
|
||||
Write-Error "Failed to registerd datacenter location in HCX Manager"
|
||||
}
|
||||
} else {
|
||||
Write-Error "Failed to search for city $City"
|
||||
|
||||
Reference in New Issue
Block a user