Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
communications-backbone
Commits
88eafa7f
Unverified
Commit
88eafa7f
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
fix: blacken
parent
435b8690
Pipeline
#114503
passed with stages
in 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
client_create.py
client_create.py
+6
-6
No files found.
client_create.py
View file @
88eafa7f
...
...
@@ -44,12 +44,12 @@ parser.add_argument(
help
=
"The root api endpoint"
,
)
parser
.
add_argument
(
'
--silent
'
,
action
=
'
store_true
'
)
parser
.
add_argument
(
"
--silent
"
,
action
=
"
store_true
"
)
parser
.
set_defaults
(
silent
=
False
)
args
=
parser
.
parse_args
()
if
not
args
.
silent
:
if
not
args
.
silent
:
parser
.
print_help
()
client_model
=
ClientModel
()
...
...
@@ -57,7 +57,7 @@ client_model = ClientModel()
# Get existing client if already exists
client
=
client_model
.
find
(
args
.
id
)
if
not
client
:
if
not
client
:
client
=
client_model
.
add
(
{
"client_id"
:
args
.
id
,
...
...
@@ -65,11 +65,11 @@ if not client:
"subscription"
:
args
.
sub
,
}
)
# Add the API endpoint to the credentials file
client
[
'
api
'
]
=
args
.
api
client
[
"
api
"
]
=
args
.
api
if
not
args
.
silent
:
if
not
args
.
silent
:
print
(
"Here is your credentials file:"
)
print
(
json
.
dumps
(
client
,
indent
=
2
))
This diff is collapsed.
Click to expand it.
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