Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KWH40
fml40-reference-implementation
Commits
4dc617cf
Commit
4dc617cf
authored
Oct 27, 2020
by
Jiahang Chen
Browse files
fix the s3i component name
parent
56a9b121
Pipeline
#349175
passed with stage
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ml/thing.py
View file @
4dc617cf
...
...
@@ -149,7 +149,7 @@ def __repo_syn(self):
continue
def
__connect_with_idp
(
self
):
print
(
BColors
.
OKBLUE
+
"[S³I][IdP]"
+
BColors
.
ENDC
+
": Connect with S3I
-
IdentityProvider"
)
print
(
BColors
.
OKBLUE
+
"[S³I][IdP]"
+
BColors
.
ENDC
+
": Connect with S3I
IdentityProvider"
)
idp
=
IdentityProvider
(
grant_type
=
self
.
__grant_type
,
client_id
=
self
.
__thing_id
,
...
...
@@ -175,7 +175,7 @@ def __connect_with_dir(self):
BColors
.
OKBLUE
+
"[S³I][Dir]"
+
BColors
.
ENDC
+
": Connect with S3I
-
Directory"
+
": Connect with S3I
Directory"
)
self
.
dir
=
Directory
(
s3i_dir_url
=
BaseVariable
.
DIR_URL
,
token
=
self
.
__access_token
)
...
...
@@ -184,12 +184,12 @@ def __connect_with_repo(self):
BColors
.
OKBLUE
+
"[S³I][Repo]"
+
BColors
.
ENDC
+
": Connect with S3I
-
Repository"
+
": Connect with S3I
Repository"
)
self
.
repo
=
Repository
(
s3i_repo_url
=
BaseVariable
.
REPO_URL
,
token
=
self
.
__access_token
)
def
__connect_with_broker
(
self
):
print
(
BColors
.
OKBLUE
+
"[S³I][Broker]"
+
BColors
.
ENDC
+
": Connect with S3I
-
Broker"
)
print
(
BColors
.
OKBLUE
+
"[S³I][Broker]"
+
BColors
.
ENDC
+
": Connect with S3I
Broker"
)
self
.
__endpoint
=
find_broker_endpoint
(
self
.
dir
,
thing_id
=
self
.
thing_id
)
if
self
.
__is_broker_rest
:
self
.
broker
=
BrokerREST
(
token
=
self
.
access_token
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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