chef / chef/chef-server

changing admin: true with knife client edit is not applied

Open
#1,480 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Aspect: Documentation Component: others Status: Waiting on Contributor Triage: Needs Information Type: Deprecation
Dominant language
Erlang
Stars
303
Forks
211
Avg merge
1d 8h
Merged PRs (30d)
5

Description

If I run knife client edit and set the admin flag from false to true and save it, the setting is not applied.

Expected Behavior

When the admin flag for a client is changed, the client should have admin privileges and knife client show should show admin:true

Current Behavior

knife client show shows still admin:false

Steps to Reproduce (for bugs)

  1. knife client edit -e "sed -i 's/"admin":\s*false/"admin": true/'"
  2. knife client show
    admin is still false

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the listed knife client edit and knife client show commands, then trace the client-edit request through the server entry point. Done means changing admin from false to true persists and knife client show reports admin:true.

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.