Skip to content

Commit 3bdc004

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 268e187 commit 3bdc004

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

repo2docker/docker.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ def docker_login(self, username, password, registry):
176176
# whatever configuration the user has already set
177177
shutil.copy2(dc_path, new_dc_path)
178178

179-
os.environ['DOCKER_CONFIG'] = d
180-
proc = subprocess.run([
179+
os.environ["DOCKER_CONFIG"] = d
180+
proc = subprocess.run(
181+
[
181182
"docker",
182183
"login",
183184
"--username",
@@ -186,15 +187,15 @@ def docker_login(self, username, password, registry):
186187
registry,
187188
],
188189
input=password.encode(),
189-
check=True
190+
check=True,
190191
)
191192
try:
192193
yield
193194
finally:
194195
if old_dc_path:
195-
os.environ['DOCKER_CONFIG'] = old_dc_path
196+
os.environ["DOCKER_CONFIG"] = old_dc_path
196197
else:
197-
del os.environ['DOCKER_CONFIG']
198+
del os.environ["DOCKER_CONFIG"]
198199

199200
def push(self, image_spec):
200201
if self.registry_credentials:

0 commit comments

Comments
 (0)