Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions PyMI/src/wmi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,11 @@ def subscribe(self, query, indication_result_callback, close_callback):
self._notify_on_close.append(close_callback)
return op

@mi_to_wmi_exception
def watch_for(self, raw_wql=None, notification_type="operation",
wmi_class=None, delay_secs=1, fields=[], **where_clause):
return _EventWatcher(self, six.text_type(raw_wql))


def _wrap_element(conn, name, el_type, value):
if isinstance(value, mi.Instance):
Expand Down