Skip to content

ank get state completions propose wrong values #622

@krucod3

Description

@krucod3

If you try to get the complete state via ank get state and try to get auto completions (using tab), the proposed completions include configs as top level field, but do not include agents.

There is also a utest for this that has invalid expectations - utest_completions_object_field_mask

Current Behavior

Wrong completions provided

Expected Behavior

The completion suggestions should not include configs, but should include agents.

Steps to Reproduce

  1. start server and agent
  2. apply a manifest
  3. type ank get state
  4. press "Tab"
  5. observe the suggestions

Context (Environment)

Logs

Additional Information

Final result

To be filled by the one closing the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. Issue will appear in the change log "Bug Fixes"

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions