[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240219124222.37cd47d0@kernel.org>
Date: Mon, 19 Feb 2024 12:42:22 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Jiri Pirko <jiri@...nulli.us>
Cc: netdev@...r.kernel.org, pabeni@...hat.com, davem@...emloft.net,
edumazet@...gle.com, jacob.e.keller@...el.com,
swarupkotikalapudi@...il.com, donald.hunter@...il.com, sdf@...gle.com,
lorenzo@...nel.org, alessandromarcolini99@...il.com
Subject: Re: [patch net-next 01/13] tools: ynl: allow user to specify flag
attr with bool values
On Mon, 19 Feb 2024 18:25:17 +0100 Jiri Pirko wrote:
> elif attr["type"] == 'flag':
> + if value == False:
> + return b''
how about "if value:" ? It could also be null / None or some other
"false" object.
Powered by blists - more mailing lists