noc.core.script.context

Module Contents

class noc.core.script.context.ConfigurationContextManager(script)

Bases: object

Configuration context manager to use with “with” statement

__enter__(self)

Entering configuration context

__exit__(self, exc_type, exc_val, exc_tb)

Leaving configuration context

class noc.core.script.context.CacheContextManager(script)

Bases: object

__enter__(self)
__exit__(self, exc_type, exc_val, exc_tb)
class noc.core.script.context.IgnoredExceptionsContextManager(iterable)

Bases: object

Silently ignore specific exceptions

__enter__(self)
__exit__(self, exc_type, exc_val, exc_tb)