Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
119a2b60
Unverified
Commit
119a2b60
authored
Aug 08, 2022
by
yjjinjie
Committed by
GitHub
Aug 08, 2022
Browse files
【dlc】Compatible with internal-dlc and none-workspace_id (#5030)
parent
2e291a12
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
ts/nni_manager/config/dlc/dlcUtil.py
ts/nni_manager/config/dlc/dlcUtil.py
+21
-7
No files found.
ts/nni_manager/config/dlc/dlcUtil.py
View file @
119a2b60
...
@@ -41,6 +41,15 @@ if __name__ == "__main__":
...
@@ -41,6 +41,15 @@ if __name__ == "__main__":
try
:
try
:
# init client
# init client
if
args
.
region
==
'share'
:
client
=
Client
(
Config
(
access_key_id
=
args
.
access_key_id
,
access_key_secret
=
args
.
access_key_secret
,
endpoint
=
'pai-dlc-share.aliyuncs.com'
)
)
else
:
client
=
Client
(
client
=
Client
(
Config
(
Config
(
access_key_id
=
args
.
access_key_id
,
access_key_id
=
args
.
access_key_id
,
...
@@ -70,6 +79,11 @@ if __name__ == "__main__":
...
@@ -70,6 +79,11 @@ if __name__ == "__main__":
ecs_spec
=
args
.
ecs_spec
,
ecs_spec
=
args
.
ecs_spec
,
)
)
if
args
.
workspace_id
==
'None'
:
args
.
workspace_id
=
None
logging
.
info
(
"args.workspace_id %s %s"
,
args
.
workspace_id
,
type
(
args
.
workspace_id
))
data_sources
=
[
nas_1
]
data_sources
=
[
nas_1
]
if
oss
:
if
oss
:
data_sources
=
[
nas_1
,
oss
]
data_sources
=
[
nas_1
,
oss
]
...
...
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