from .config import CrTplConfiguration
-__version__ = '0.9.2'
+__version__ = '0.9.2.1'
LOG = logging.getLogger(__name__)
TZ = pytz.timezone('Europe/Berlin')
max_depth = 10
re_local_ds = re.compile(r'^local[_-]', re.IGNORECASE)
+ re_share_nfs_ds = re.compile(r'(?:share[_-]*nfs|nfs[_-]*share)', re.IGNORECASE)
# -------------------------------------------------------------------------
def __init__(
if self.verbose > 2:
LOG.debug("Datastore {!r} seems to be local.".format(child.summary.name))
return
+ if self.re_share_nfs_ds.search(child.summary.name):
+ if self.verbose > 2:
+ LOG.debug("Datastore {!r} seems to be a NFS share.".format(child.summary.name))
+ return
if child.summary.name in self.config.excluded_datastores:
LOG.debug("Datastore {!r} is excluded.".format(child.summary.name))
return