Skip to content

Cumulocity CLI 2.4.5

Compare
Choose a tag to compare
@github-actions github-actions released this 07 Oct 18:07
· 84 commits to master since this release
ce972e1

Changelog

Bugfixes

Removed brackets around queryTemplate input string (#81)

Fix bug where the piped input to a query was being wrapped with braces (<input>).

Example

echo "c8y_Linux" | c8y devices list --queryTemplate "type eq '%s'" --dry

# Incorrect query with extra brackets
# => /inventory/managedObjects?q=$filter=type eq '(c8y_Linux)' $orderby=name

# Corrected query
# => /inventory/managedObjects?q=$filter=type eq 'c8y_Linux' $orderby=name

Affected Commands

The following command were affected by the bug when the --queryTemplate option was used.

  • c8y agents list
  • c8y devices list
  • c8y devicegroups list
  • c8y smartgroups list