Skip to content

Commit

Permalink
Not ask when nothing to update (#1197)
Browse files Browse the repository at this point in the history
* fix: skip asking when no missing capabilities'

* build: changlog
  • Loading branch information
doctrino authored Nov 14, 2024
1 parent e9732a1 commit 738fa27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.cdf-tk.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Changes are grouped as follows:

### Fixed

- `cdf auth verify` no longer asks to update missing capabilities if there are no missing capabilities.
- `run function local` now works with functions that are importing adjacent modules.
- Environment variables were not replaced in Functions. This is now fixed.

Expand Down
2 changes: 2 additions & 0 deletions cognite_toolkit/_cdf_tk/commands/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def verify(
)
if (
is_interactive
and missing_capabilities
and questionary.confirm("Do you want to update the group with the missing capabilities?").ask()
):
has_added_capabilities = self._update_missing_capabilities(
Expand All @@ -164,6 +165,7 @@ def verify(
)
if (
is_interactive
and missing_capabilities
and questionary.confirm("Do you want to update the group with the missing capabilities?").ask()
):
self._update_missing_capabilities(ToolGlobals, cdf_toolkit_group, missing_capabilities, dry_run)
Expand Down

0 comments on commit 738fa27

Please sign in to comment.