Skip to content

Commit

Permalink
fix line length and using constant yet imported
Browse files Browse the repository at this point in the history
  • Loading branch information
kikemolina3 committed Jun 21, 2024
1 parent 334cfb4 commit e970c8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lithops/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import logging

from lithops import constants as c
from lithops.constants import LITHOPS_DEFAULT_CONFIG_KEYS
from lithops.version import __version__
from lithops.utils import CURRENT_PY_VERSION, get_mode, get_default_backend
from builtins import FileNotFoundError
Expand Down Expand Up @@ -226,8 +225,9 @@ def default_storage_config(config_file=None, config_data=None, backend=None):

def extract_storage_config(config):
s_config = {}
s_config['monitoring_interval'] = config['lithops'].get('monitoring_interval',
LITHOPS_DEFAULT_CONFIG_KEYS['monitoring_interval'])
s_config['monitoring_interval'] = config['lithops'].get(
'monitoring_interval', c.LITHOPS_DEFAULT_CONFIG_KEYS['monitoring_interval']
)
backend = config['lithops']['storage']
s_config['backend'] = backend
s_config[backend] = config[backend] if backend in config and config[backend] else {}
Expand Down

0 comments on commit e970c8f

Please sign in to comment.