|
9 | 9 | from base64 import b64encode |
10 | 10 | from collections.abc import Sequence |
11 | 11 | from configparser import UNNAMED_SECTION, ConfigParser |
12 | | -from hashlib import sha256 |
13 | 12 | from os import PathLike, fdopen, getenv |
14 | 13 | from pathlib import Path |
15 | 14 | from tempfile import mkstemp |
|
18 | 17 |
|
19 | 18 | import jsonschema |
20 | 19 | from oras.container import Container as OrasContainer |
21 | | -from oras.defaults import unknown_config_media_type as UNKNOWN_CONFIG_MEDIA_TYPE |
22 | 20 | from oras.provider import Registry |
23 | 21 | from oras.utils import extract_targz, make_targz |
24 | 22 | from requests import Response |
25 | 23 |
|
26 | | -from ..constants import GL_MEDIA_TYPE_LOOKUP, OCI_IMAGE_INDEX_MEDIA_TYPE |
| 24 | +from ..constants import OCI_IMAGE_INDEX_MEDIA_TYPE |
27 | 25 | from ..features.cname import CName |
28 | 26 | from ..logger import LoggerSetup |
29 | 27 | from .image_manifest import ImageManifest |
@@ -117,7 +115,7 @@ def __init__( |
117 | 115 |
|
118 | 116 | # Login to registry if credentials are provided |
119 | 117 | if username and password: |
120 | | - self._logger.debug(f"Logging in with username/password") |
| 118 | + self._logger.debug("Logging in with username/password") |
121 | 119 |
|
122 | 120 | try: |
123 | 121 | self.login(username, password) |
|
0 commit comments