Rename deviceinfo variable flash_methods to flash_method (#1030)

* Rename deviceinfo variable flash_methods to flash_method
* Update pmb.config.deviceinfo_attributes / add sanity check
* Add test case that parses all deviceinfo files
This commit is contained in:
Attila Szöllősi 2017-12-21 23:12:52 +01:00 committed by Oliver Smith
parent d34e8d172e
commit c6eb56c200
91 changed files with 188 additions and 132 deletions

View file

@ -23,7 +23,7 @@ import pmb.helpers.mount
def init(args):
# Validate method
method = args.deviceinfo["flash_methods"]
method = args.deviceinfo["flash_method"]
if method not in pmb.config.flashers:
raise RuntimeError("Flash method " + method + " is not supported by the"
" current configuration. However, adding a new flash method is "