fix swift_oldies on RH based systems

Change-Id: Icbb4c6d461ded4fab2afade09e718b3a74917717
Signed-off-by: Thiago da Silva <thiago@redhat.com>
This commit is contained in:
Thiago da Silva 2016-08-11 16:24:57 -04:00
parent 6d472f8a7a
commit 05b8d9d7fc

View File

@ -43,8 +43,10 @@ Lists old Swift processes.
if not args.startswith(( if not args.startswith((
'/usr/bin/python /usr/bin/swift-', '/usr/bin/python /usr/bin/swift-',
'/usr/bin/python /usr/local/bin/swift-', '/usr/bin/python /usr/local/bin/swift-',
'/bin/python /usr/bin/swift-',
'/usr/bin/python3 /usr/bin/swift-', '/usr/bin/python3 /usr/bin/swift-',
'/usr/bin/python3 /usr/local/bin/swift-')): '/usr/bin/python3 /usr/local/bin/swift-',
'/bin/python3 /usr/bin/swift-')):
continue continue
args = args.split('-', 1)[1] args = args.split('-', 1)[1]
etime = etime.split('-') etime = etime.split('-')