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

[sonic-package-manager] Drop 'expires_in' #2002

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

bluecmd
Copy link
Contributor

@bluecmd bluecmd commented Jan 9, 2022

What I did

The 'expires_in' attribute for tokens is defined as optional and some
Docker repositories (notably ghcr.io) do not set it.

How I did it

Since 'expires_in' is not used anywhere in the code, we simply drop it.

How to verify it

Try to install a SONiC package from ghcr.io. E.g.:

sudo sonic-package-manager install --from-repository ghcr.io/kamelnetworks/sonic_exporter:main

Previous command output (if the output of a command-line utility has changed)

ghcr.io/kamelnetworks/sonic_exporter:main is going to be installed, continue? [y/N]: y
Failed to install ghcr.io/kamelnetworks/sonic_exporter:main: 'expires_in'

New command output (if the output of a command-line utility has changed)

Output as expected

The 'expires_in' attribute for tokens is defined as optional and some
Docker repositories (notably ghcr.io) do not set it.

Since 'expires_in' is not used anywhere in the code, we simply drop it.

Signed-off-by: Christian Svensson <blue@cmd.nu>
Copy link
Contributor

@stepanblyschak stepanblyschak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. thanks!

@bluecmd
Copy link
Contributor Author

bluecmd commented Jan 21, 2022

@stepanblyschak Thanks for approving, do you know who can merge the change?

@stepanblyschak
Copy link
Contributor

@bluecmd Need @qiluo-msft @renukamanavalan approval for the merge.

@bluecmd
Copy link
Contributor Author

bluecmd commented Aug 7, 2022

@qiluo-msft @renukamanavalan Do you have time to review this?

@qiluo-msft
Copy link
Contributor

/easycla

@qiluo-msft qiluo-msft merged commit 666bdc0 into sonic-net:master Aug 26, 2022
preetham-singh pushed a commit to preetham-singh/sonic-utilities that referenced this pull request Nov 21, 2022
#### What I did

The 'expires_in' attribute for tokens is defined as optional and some
Docker repositories (notably ghcr.io) do not set it.

#### How I did it

Since 'expires_in' is not used anywhere in the code, we simply drop it.

#### How to verify it

Try to install a SONiC package from `ghcr.io`. E.g.:

```
sudo sonic-package-manager install --from-repository ghcr.io/kamelnetworks/sonic_exporter:main
```

#### Previous command output (if the output of a command-line utility has changed)

```
ghcr.io/kamelnetworks/sonic_exporter:main is going to be installed, continue? [y/N]: y
Failed to install ghcr.io/kamelnetworks/sonic_exporter:main: 'expires_in'
```

#### New command output (if the output of a command-line utility has changed)

Output as expected
@bluecmd bluecmd deleted the patch-1 branch April 22, 2023 19:18
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.

None yet

3 participants