nornir.core.state¶
-
class
nornir.core.state.GlobalState(dry_run: bool = False, failed_hosts: Set[str] = None)¶ This class is just a placeholder to share data amongst different versions of Nornir after running
filtermultiple times.-
failed_hosts¶ Hosts that have failed to run a task properly
-
dict() → Dict[str, Any]¶ Return a dictionary representing the object.
-
dry_run¶
-
failed_hosts
-
recover_host(host: str) → None¶ Remove
hostfrom list of failed hosts.
-
reset_failed_hosts() → None¶ Reset failed hosts and make all hosts available for future tasks.
-