Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(software install): add softwareType field by looking up the software #416

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

reubenmiller
Copy link
Owner

c8y software versions install now sets the softwareType property of the operation if the user provides the software item reference via --software <name|id>.

Previously, name, url, and version were added, by softwareType was not. This has been resolved now.

User's can also over the value by specifying a static value using the --softwareType <value> flag.

Example

c8y software versions install --softwareType hello \
        --device "portenta-x8-1f0e4a09dabc16ac" \
        --action install \
        --software tedge \
        --version "ghcr.io/thin-edge/tedge-container-bundle:20241201.0920" --dry

Outgoing request Body:

{
  "c8y_SoftwareUpdate": [
    {
      "action": "install",
      "name": "tedge",
      "softwareType": "container",
      "url": "",
      "version": "ghcr.io/thin-edge/tedge-container-bundle:20241201.0920"
    }
  ],
  "description": "Install software package",
  "deviceId": "4541877894"
}

@reubenmiller reubenmiller force-pushed the feat-install-software-lookup-type branch from 977df68 to e2b4157 Compare December 1, 2024 10:18
@reubenmiller reubenmiller merged commit 4036815 into v2 Dec 1, 2024
4 checks passed
@reubenmiller reubenmiller deleted the feat-install-software-lookup-type branch December 1, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant