mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-27 23:10:30 +00:00
Fix recently introduced TabError's
Commits a3d2c7a 6a7a5aa
introduced inconsistent use of tabs and spaces
in indentation what makes python3.6 unhappy.
Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
This commit is contained in:
parent
914691cc2a
commit
5b61d8fba8
@ -254,8 +254,8 @@ if __name__ == "__main__":
|
||||
"policy.kern",
|
||||
"file_contexts",
|
||||
"homedir_template",
|
||||
"pkeys.local",
|
||||
"ibendports.local"]
|
||||
"pkeys.local",
|
||||
"ibendports.local"]
|
||||
|
||||
|
||||
create_dir(newroot_path(), 0o755)
|
||||
|
@ -1321,10 +1321,10 @@ class ibpkeyRecords(semanageRecords):
|
||||
semanageRecords.__init__(self, store)
|
||||
|
||||
def __genkey(self, pkey, subnet_prefix):
|
||||
if subnet_prefix == "":
|
||||
if subnet_prefix == "":
|
||||
raise ValueError(_("Subnet Prefix is required"))
|
||||
|
||||
pkeys = pkey.split("-")
|
||||
pkeys = pkey.split("-")
|
||||
if len(pkeys) == 1:
|
||||
high = low = int(pkeys[0], 0)
|
||||
else:
|
||||
@ -1576,7 +1576,7 @@ class ibendportRecords(semanageRecords):
|
||||
semanageRecords.__init__(self, store)
|
||||
|
||||
def __genkey(self, ibendport, ibdev_name):
|
||||
if ibdev_name == "":
|
||||
if ibdev_name == "":
|
||||
raise ValueError(_("IB device name is required"))
|
||||
|
||||
port = int(ibendport)
|
||||
|
Loading…
Reference in New Issue
Block a user