Skip to content

Commit bead78a

Browse files
authored
Update nfs.py
fixed syntax error for fstring that was causing it to crash Signed-off-by: Justin Bollinger <justin@jbollinger.com>
1 parent 5e08f53 commit bead78a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/nfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def shares(self):
262262

263263
read_perm, write_perm, exec_perm = self.get_permissions(file_handle)
264264
self.mount.umnt(self.auth)
265-
self.logger.highlight(f"{self.auth['uid']:<11}{'r' if read_perm else '-'}{'w' if write_perm else '-'}{('x' if exec_perm else '-'):<7}{convert_size(used_space) + "/" + convert_size(total_space):<16} {share:<30} {', '.join(network) if network else 'No network':<15}")
265+
self.logger.highlight(f"{self.auth['uid']:<11}{'r' if read_perm else '-'}{'w' if write_perm else '-'}{('x' if exec_perm else '-'):<7}{convert_size(used_space) / convert_size(total_space):<16} {share:<30} {', '.join(network) if network else 'No network':<15}")
266266
except Exception as e:
267267
self.logger.fail(f"Failed to list share: {share} - {e}")
268268

0 commit comments

Comments
 (0)