diff --git a/freezerclient/v1/sessions.py b/freezerclient/v1/sessions.py index 0ae2cd9..09bb618 100644 --- a/freezerclient/v1/sessions.py +++ b/freezerclient/v1/sessions.py @@ -100,10 +100,11 @@ class SessionList(lister.Lister): return parser def take_action(self, parsed_args): + search = utils.prepare_search(parsed_args.search) sessions = self.app.client.sessions.list_all( limit=parsed_args.limit, offset=parsed_args.offset, - search=parsed_args.search + search=search ) # Print empty table if no sessions found diff --git a/freezerclient/v2/sessions.py b/freezerclient/v2/sessions.py index 14d4187..333349d 100644 --- a/freezerclient/v2/sessions.py +++ b/freezerclient/v2/sessions.py @@ -102,10 +102,11 @@ class SessionList(lister.Lister): return parser def take_action(self, parsed_args): + search = utils.prepare_search(parsed_args.search) sessions = self.app.client.sessions.list_all( limit=parsed_args.limit, offset=parsed_args.offset, - search=parsed_args.search + search=search ) # Print empty table if no sessions found