mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 12:32:12 +02:00
wic: Make _ptable_format public
Names with one leasding underscore considered protected in Python. _ptable_format is accessed outside of its class. Made it public by removing underscore. This pylint warning should be fixed now: Access to a protected member _ptable_format of a client class (From OE-Core rev: 72599b5500ebdd0c418a0ef1e2c93c833bd31d75) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
179fb20603
commit
9682d8f21e
@@ -61,7 +61,7 @@ class BootimgEFIPlugin(SourcePlugin):
|
||||
|
||||
kernel = "/bzImage"
|
||||
|
||||
if cr._ptable_format in ('msdos', 'gpt'):
|
||||
if cr.ptable_format in ('msdos', 'gpt'):
|
||||
rootstr = rootdev
|
||||
else:
|
||||
raise ImageError("Unsupported partition table format found")
|
||||
@@ -106,7 +106,7 @@ class BootimgEFIPlugin(SourcePlugin):
|
||||
|
||||
kernel = "/bzImage"
|
||||
|
||||
if cr._ptable_format in ('msdos', 'gpt'):
|
||||
if cr.ptable_format in ('msdos', 'gpt'):
|
||||
rootstr = rootdev
|
||||
else:
|
||||
raise ImageError("Unsupported partition table format found")
|
||||
|
||||
Reference in New Issue
Block a user