From 94cd47a0018c614eb72a3b6d7bdd5173d823a805 Mon Sep 17 00:00:00 2001 From: XuWei Date: Mon, 9 Apr 2018 22:30:03 -0400 Subject: [PATCH] support rinv/rvitals run with Verbose option only --- xCAT-openbmc-py/lib/python/agent/xcatagent/openbmc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-openbmc-py/lib/python/agent/xcatagent/openbmc.py b/xCAT-openbmc-py/lib/python/agent/xcatagent/openbmc.py index c7cf2a85c..af445c481 100644 --- a/xCAT-openbmc-py/lib/python/agent/xcatagent/openbmc.py +++ b/xCAT-openbmc-py/lib/python/agent/xcatagent/openbmc.py @@ -217,8 +217,8 @@ class OpenBMCManager(base.BaseManager): def rinv(self, nodesinfo, args): # 1, parse agrs - if not args: - args = ['all'] + if not args or (len(args) == 1 and args[0] in ['-V', '--verbose']): + args.append('all') rinv_usage = """ Usage: @@ -385,8 +385,8 @@ class OpenBMCManager(base.BaseManager): def rvitals(self, nodesinfo, args): # 1, parse agrs - if not args: - args = ['all'] + if not args or (len(args) == 1 and args[0] in ['-V', '--verbose']): + args.append('all') rvitals_usage = """ Usage: