UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
Lockheed Martin
Replicator
Commits
e94d48b2
Commit
e94d48b2
authored
Jun 24, 2020
by
Ian Dunbar-Hall
Browse files
Spelling updates, thanks
@jeremy.e.snyder7.ctr
for the MR comments!
parent
9aaef49a
Pipeline
#24801
passed with stage
in 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
replicator/dcar/image.py
replicator/dcar/image.py
+1
-1
replicator/dcar/request.py
replicator/dcar/request.py
+1
-1
No files found.
replicator/dcar/image.py
View file @
e94d48b2
...
@@ -202,7 +202,7 @@ def mirror_image(session, registry_image_name: str, registry_user: str, registry
...
@@ -202,7 +202,7 @@ def mirror_image(session, registry_image_name: str, registry_user: str, registry
with
session
.
get
(
image_details
[
"imageTar"
],
stream
=
True
)
as
response
:
with
session
.
get
(
image_details
[
"imageTar"
],
stream
=
True
)
as
response
:
with
open
(
image_tar
,
'wb'
)
as
tar_download
:
with
open
(
image_tar
,
'wb'
)
as
tar_download
:
shutil
.
copyfileobj
(
response
.
raw
,
tar_download
)
shutil
.
copyfileobj
(
response
.
raw
,
tar_download
)
print
(
"
\t
dowloaded tar separately"
,
flush
=
True
)
print
(
"
\t
dow
n
loaded tar separately"
,
flush
=
True
)
except
ProxyError
:
except
ProxyError
:
print
(
"Proxy Error Occurred"
,
flush
=
True
,
file
=
sys
.
stderr
)
print
(
"Proxy Error Occurred"
,
flush
=
True
,
file
=
sys
.
stderr
)
return
False
return
False
...
...
replicator/dcar/request.py
View file @
e94d48b2
...
@@ -58,7 +58,7 @@ class Session:
...
@@ -58,7 +58,7 @@ class Session:
# AttributeError exception occurs when beautiful soup fails to find a id.
# AttributeError exception occurs when beautiful soup fails to find a id.
# Typically this will be the 'kc-form-login' or 'kc-totp-login-form' ids.
# Typically this will be the 'kc-form-login' or 'kc-totp-login-form' ids.
except
AttributeError
:
except
AttributeError
:
raise
LoginError
(
"Error logging into Iron Bank, login form likey changed"
)
raise
LoginError
(
"Error logging into Iron Bank, login form like
l
y changed"
)
def
get
(
self
,
path
:
str
,
stream
:
bool
=
False
,
verify
:
bool
=
False
,
max_retries
:
int
=
10
,
def
get
(
self
,
path
:
str
,
stream
:
bool
=
False
,
verify
:
bool
=
False
,
max_retries
:
int
=
10
,
retry_sleep
:
int
=
10
,
dcar_url
:
str
=
"https://dcar.dsop.io"
,
retry_sleep
:
int
=
10
,
dcar_url
:
str
=
"https://dcar.dsop.io"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment