sync
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 37s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 37s
This commit is contained in:
@@ -151,6 +151,12 @@ class ConfigManager:
|
||||
# Value is base64 encoded JSON
|
||||
encoded_value = data['Value']
|
||||
logger.debug(f"Consul encoded value: {encoded_value}")
|
||||
|
||||
# Add padding if necessary for base64 decoding
|
||||
padding_needed = len(encoded_value) % 4
|
||||
if padding_needed != 0:
|
||||
encoded_value += '=' * (4 - padding_needed)
|
||||
|
||||
decoded_json_str = base64.b64decode(encoded_value).decode('utf-8')
|
||||
logger.debug(f"Consul decoded JSON string: {decoded_json_str}")
|
||||
consul_conf = json.loads(decoded_json_str) # Parse the JSON
|
||||
|
||||
Reference in New Issue
Block a user