simplify string formatting in some modules (#10727)

* simplify string formatting in some modules

* add changelog frag
This commit is contained in:
Alexei Znamensky 2025-08-31 21:46:43 +12:00 committed by GitHub
commit 6f40eff632
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 23 additions and 13 deletions

View file

@ -188,9 +188,9 @@ class ZFSFacts(object):
cmd.append('-p')
if self.recurse:
cmd.append('-r')
if int(self.depth) != 0:
if self.depth != 0:
cmd.append('-d')
cmd.append('%s' % self.depth)
cmd.append('%d' % self.depth)
if self.type:
cmd.append('-t')
cmd.append(','.join(self.type))