You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NotEnoughFreeSpaceError discards its byte counts, forcing callers to parse the message #426
NotEnoughFreeSpaceError accepts required, available and file_system, uses them to build the message string, and then calls super().__init__(message) without storing any of them (errors.py L209-L226). The values are only recoverable by parsing message.
The message also prints the raw integers with no thousands separators, so a nine-digit byte count is hard to read and the shortfall has to be worked out by hand:
host1: bootflash: has 13456789 bytes free; 313456789 bytes required for transfer
Expected Behavior
The byte counts kept as attributes, so a caller can render its own message or compute the shortfall without a regex. The default message readable at a glance, including how much more space is needed.
Activity