mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
PEP8: fix E302: expected 2 blank lines, found 1
Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
@ -24,6 +24,7 @@ import ldb
|
||||
from ldb import FLAG_MOD_ADD, FLAG_MOD_REPLACE, LdbError
|
||||
from sites import SiteNotFoundException
|
||||
|
||||
|
||||
class SubnetException(Exception):
|
||||
"""Base element for Subnet errors"""
|
||||
pass
|
||||
@ -129,6 +130,7 @@ def delete_subnet(samdb, configDn, subnet_name):
|
||||
|
||||
samdb.delete(dnsubnet)
|
||||
|
||||
|
||||
def rename_subnet(samdb, configDn, subnet_name, new_name):
|
||||
"""Rename a subnet.
|
||||
|
||||
@ -164,6 +166,7 @@ def rename_subnet(samdb, configDn, subnet_name, new_name):
|
||||
else:
|
||||
raise
|
||||
|
||||
|
||||
def set_subnet_site(samdb, configDn, subnet_name, site_name):
|
||||
"""Assign a subnet to a site.
|
||||
|
||||
|
Reference in New Issue
Block a user