python/samples/users | 2 +-
python/samples/users-inheritance-impl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Update the users sample OI to work with the psutil 2.0 version. The get_users()
method is renamed to users().
diff --git a/python/samples/users b/python/samples/users
--- a/python/samples/users
+++ b/python/samples/users
@@ -11,7 +11,7 @@ import argparse
class_name='UsersSampleClass'
def on_attribute_update(*args):
- return list(set(map(lambda x: x.name, psutil.get_users())))
+ return list(set(map(lambda x: x.name, psutil.users())))
if __name__ == '__main__':
diff --git a/python/samples/users-inheritance-impl
b/python/samples/users-inheritance-impl
--- a/python/samples/users-inheritance-impl
+++ b/python/samples/users-inheritance-impl
@@ -16,7 +16,7 @@ class UsersImplementer(Implementer):
Implementer.__init__(self, name='UsersImplementer')
def on_runtime_values_get(self, name, class_name, attribute):
- return list(set(map(lambda x: x.name, psutil.get_users())))
+ return list(set(map(lambda x: x.name, psutil.users())))
if __name__ == '__main__':
------------------------------------------------------------------------------
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel