Project

General

Profile

Actions

Bug #13596

closed

hammer: unable to remove association between hostgroup and environment

Added by Jeff Sault over 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Hammer core
Target version:
-
Difficulty:
Triaged:
Yes
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

It should be possible using hammer to remove the association between a hostgroup and an environment. This is possible in the UI and causes the HG to inherit the environment from a parent HG.

Currently all validation checks fail when trying to unset this value using hammer...

  1. hammer hostgroup update --name db --environment-id
    Could not update the hostgroup:
    Error: option '--environment-id': numeric value is required

    See: 'hammer hostgroup update --help'

  1. hammer hostgroup update --name db --environment ''
    Could not update the hostgroup:
    Error: environment not found

Related issues 1 (0 open1 closed)

Related to Hammer CLI - Feature #15674: Implement host disassociation commandClosedShira MaximovActions
Actions #1

Updated by Martin Bacovsky almost 8 years ago

  • Related to Feature #15674: Implement host disassociation command added
Actions #2

Updated by Oleh Fedorenko over 4 years ago

  • Status changed from New to Closed
  • Triaged changed from No to Yes

To remove the association between a host group and an environment, please use

hammer hostgroup update --name myhostgroup --puppet-environment NIL
Actions

Also available in: Atom PDF