3.2. 创建多个位置

以下示例 Bash 脚本创建三个位置 - 伦敦、Munich 和 Boston - 并将它们分配到示例组织。

ORG="Example Organization"
LOCATIONS="London Munich Boston"

for LOC in ${LOCATIONS}
do
  hammer location create --name "${LOC}"
  hammer location add-organization --name "${LOC}" --organization "${ORG}"
done