Commit 666bdc0
authored
[sonic-package-manager] Drop 'expires_in' (#2002)
#### 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 expected1 parent 52ac8ac commit 666bdc0
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
| 48 | + | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
0 commit comments