4.2. 创建多个位置

以下示例 Bash 脚本创建三个位置 - London、Munich、Chhi - 并将其分配到 Example 机构。

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