def _list_groups(self):
    (groups, errors) = self.rest.list_user_groups()
    _exit_if_errors(errors)
    print(json.dumps(groups, indent=2))
def _list_groups(self):
    (groups, errors) = self.rest.list_user_groups()
    _exit_if_errors(errors)
    print(json.dumps(groups, indent=2))