Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
User Interfaces
Admin UI
Commits
c8c7bae9
Commit
c8c7bae9
authored
May 14, 2021
by
Maksimelyan Tamashevich (EPAM)
Browse files
GONRG-2353 Format python script
parent
39e82253
Pipeline
#39791
failed with stages
in 2 minutes and 31 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
provider/osdu-gcp/modify_config_file.py
View file @
c8c7bae9
#!/usr/bin/python
import
json
import
os
with
open
(
'OSDUApp/src/assets/config/config.prod.json'
,
'r'
)
as
file
:
json_data
=
json
.
load
(
file
)
if
json_data
[
'idp'
][
1
][
'cloud_name'
]
==
"gcp"
:
json_data
=
json
.
load
(
file
)
if
json_data
[
'idp'
][
1
][
'cloud_name'
]
==
"gcp"
:
json_data
[
'idp'
][
0
][
'in_use'
]
=
False
json_data
[
'idp'
][
1
][
'in_use'
]
=
True
json_data
[
'idp'
][
1
][
'api_endpoints'
][
'entitlement_endpoint'
]
=
os
.
environ
[
'ENTITLEMENTS_ENDPOINT'
]
...
...
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