Syntax error on curtin/block/__init__.py#L317-L318

Bug #2059414 reported by Cho Jaeho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
New
Undecided
Unassigned

Bug Description

There is a syntax error on 'curtin/block/__init__.py#L317-L318'
- https://github.com/canonical/curtin/blob/master/curtin/block/__init__.py#L317-L318

Python string interpolation is not working because of omitting of parenthesis. As a result, it prints "TypeError: not enough arguments for format string". but that is not what I expected. It should print RuntimeError for "Device ~ not present in sfdisk dump ~".

Below is original one:
```
        raise RuntimeError('Device %s not present in sfdisk dump:\n%s' %
                           devpath, util.json_dumps(sfdisk_info))
```

It should be like this:
```
        raise RuntimeError('Device %s not present in sfdisk dump:\n%s' %
                           (devpath, util.json_dumps(sfdisk_info)))
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.