in curator/helpers/testers.py [0:0]
def is_idx_partial(idx_settings):
"""
:param idx_settings: The settings for an index being tested
:type idx_settings: dict
:returns: ``True`` if store.snapshot.partial exists in settings, else ``False``
:rtype: bool
"""
if 'store' in idx_settings:
if 'snapshot' in idx_settings['store']:
if 'partial' in idx_settings['store']['snapshot']:
if idx_settings['store']['snapshot']['partial']:
return True
# store.snapshot.partial exists but is False -- Not a frozen tier mount
return False
# store.snapshot exists, but partial isn't there --
# Possibly a cold tier mount
return False
raise SearchableSnapshotException('Index not a mounted searchable snapshot')
raise SearchableSnapshotException('Index not a mounted searchable snapshot')