Skip to content

Commit 7c3d059

Browse files
committed
format
1 parent 8883ca8 commit 7c3d059

3 files changed

Lines changed: 57 additions & 57 deletions

File tree

ns1/__init__.py

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def loadZone(self, zone, callback=None, errback=None):
248248
return zone.load(callback=callback, errback=errback)
249249

250250
def searchZone(
251-
self, zone, q=None, has_geo=False, callback=None, errback=None
251+
self, zone, q=None, has_geo=False, callback=None, errback=None
252252
):
253253
"""
254254
Search a zone for a given search query (e.g., for geological data, etc)
@@ -260,7 +260,7 @@ def searchZone(
260260
return zone.search(q, has_geo, callback=callback, errback=errback)
261261

262262
def createZone(
263-
self, zone, zoneFile=None, callback=None, errback=None, **kwargs
263+
self, zone, zoneFile=None, callback=None, errback=None, **kwargs
264264
):
265265
"""
266266
Create a new zone, and return an associated high level Zone object.
@@ -288,7 +288,7 @@ def createZone(
288288
)
289289

290290
def loadRecord(
291-
self, domain, type, zone=None, callback=None, errback=None, **kwargs
291+
self, domain, type, zone=None, callback=None, errback=None, **kwargs
292292
):
293293
"""
294294
Load an existing record into a high level Record object.
@@ -365,7 +365,7 @@ def loadNetworkbyName(self, name, callback=None, errback=None):
365365
return network.load(callback=callback, errback=errback)
366366

367367
def createNetwork(
368-
self, name, scope_group_id=None, callback=None, errback=None, **kwargs
368+
self, name, scope_group_id=None, callback=None, errback=None, **kwargs
369369
):
370370
"""
371371
Create a new Network
@@ -398,7 +398,7 @@ def loadAddressbyID(self, id, callback=None, errback=None):
398398
return address.load(callback=callback, errback=errback)
399399

400400
def loadAddressbyPrefix(
401-
self, prefix, status, network_id, callback=None, errback=None
401+
self, prefix, status, network_id, callback=None, errback=None
402402
):
403403
"""
404404
Load an existing address by prefix, status and network into a high level Address object
@@ -417,7 +417,7 @@ def loadAddressbyPrefix(
417417
return address.load(callback=callback, errback=errback)
418418

419419
def createAddress(
420-
self, prefix, status, network_id, callback=None, errback=None, **kwargs
420+
self, prefix, status, network_id, callback=None, errback=None, **kwargs
421421
):
422422
"""
423423
Create a new Address
@@ -449,7 +449,7 @@ def loadScopeGroup(self, id, callback=None, errback=None):
449449
return scope_group.load(callback=callback, errback=errback)
450450

451451
def createScopeGroup(
452-
self, name, service_def_id, dhcp4, dhcp6, callback=None, errback=None, **kwargs
452+
self, name, service_def_id, dhcp4, dhcp6, callback=None, errback=None, **kwargs
453453
):
454454
"""
455455
Create a new Scope Group
@@ -471,14 +471,14 @@ def createScopeGroup(
471471
)
472472

473473
def createReservation(
474-
self,
475-
scopegroup_id,
476-
address_id,
477-
mac,
478-
dhcp_options=None,
479-
callback=None,
480-
errback=None,
481-
**kwargs
474+
self,
475+
scopegroup_id,
476+
address_id,
477+
mac,
478+
dhcp_options=None,
479+
callback=None,
480+
errback=None,
481+
**kwargs
482482
):
483483
"""
484484
Create a new Reservation
@@ -498,7 +498,7 @@ def createReservation(
498498
return reservation.create(callback=callback, errback=errback, **kwargs)
499499

500500
def loadReservation(
501-
self, scopegroup_id, address_id, callback=None, errback=None
501+
self, scopegroup_id, address_id, callback=None, errback=None
502502
):
503503
import ns1.ipam
504504

@@ -509,13 +509,13 @@ def loadReservation(
509509
return reservation.load(callback=callback, errback=errback)
510510

511511
def createScope(
512-
self,
513-
scopegroup_id,
514-
address_id,
515-
dhcp_options=None,
516-
callback=None,
517-
errback=None,
518-
**kwargs
512+
self,
513+
scopegroup_id,
514+
address_id,
515+
dhcp_options=None,
516+
callback=None,
517+
errback=None,
518+
**kwargs
519519
):
520520
"""
521521
Create a new Scope
@@ -534,7 +534,7 @@ def createScope(
534534
return scope.create(callback=callback, errback=errback, **kwargs)
535535

536536
def loadScope(
537-
self, scopegroup_id, address_id, callback=None, errback=None
537+
self, scopegroup_id, address_id, callback=None, errback=None
538538
):
539539
import ns1.ipam
540540

@@ -543,13 +543,13 @@ def loadScope(
543543
return scope.load(callback=callback, errback=errback)
544544

545545
def loadLeases(
546-
self,
547-
scope_group_id=None,
548-
scope_id=None,
549-
limit=None,
550-
offset=None,
551-
callback=None,
552-
errback=None,
546+
self,
547+
scope_group_id=None,
548+
scope_id=None,
549+
limit=None,
550+
offset=None,
551+
callback=None,
552+
errback=None,
553553
):
554554
import ns1.ipam
555555

ns1/ipam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def success(result, *args):
449449
self.dhcp4 = result["dhcpv4"]
450450
self.dhcp6 = result["dhcpv6"]
451451
self.dhcp_service_id = result.get("dhcp_service_id")
452-
452+
453453
if "tags" in result:
454454
self.tags = result["tags"]
455455

ns1/rest/ipam.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def create(self, callback=None, errback=None, parent=True, **kwargs):
3737
)
3838

3939
def update(
40-
self, address_id, callback=None, errback=None, parent=True, **kwargs
40+
self, address_id, callback=None, errback=None, parent=True, **kwargs
4141
):
4242
body = self._buildBody(**kwargs)
4343
params = {"parent": parent}
@@ -288,7 +288,7 @@ def select_from_list(cls, result, scope_id):
288288
return None
289289

290290
def create(
291-
self, scopegroup_id, address_id, options, callback=None, errback=None, **kwargs
291+
self, scopegroup_id, address_id, options, callback=None, errback=None, **kwargs
292292
):
293293
kwargs["address_id"] = address_id
294294
kwargs["scope_group_id"] = scopegroup_id
@@ -304,14 +304,14 @@ def create(
304304
)
305305

306306
def update(
307-
self,
308-
scope_id,
309-
address_id,
310-
options,
311-
scopegroup_id=None,
312-
callback=None,
313-
errback=None,
314-
**kwargs
307+
self,
308+
scope_id,
309+
address_id,
310+
options,
311+
scopegroup_id=None,
312+
callback=None,
313+
errback=None,
314+
**kwargs
315315
):
316316
kwargs["address_id"] = address_id
317317
kwargs["options"] = options
@@ -361,13 +361,13 @@ class Leases(resource.BaseResource):
361361
BOOL_FIELDS = []
362362

363363
def list(
364-
self,
365-
scope_group_id=None,
366-
scope_id=None,
367-
limit=None,
368-
offset=None,
369-
callback=None,
370-
errback=None,
364+
self,
365+
scope_group_id=None,
366+
scope_id=None,
367+
limit=None,
368+
offset=None,
369+
callback=None,
370+
errback=None,
371371
):
372372
params = {}
373373
if scope_group_id is not None:
@@ -453,13 +453,13 @@ def select_from_list(cls, result, address_id):
453453
return None
454454

455455
def create(
456-
self,
457-
scopegroup_id,
458-
address_id,
459-
options,
460-
callback=None,
461-
errback=None,
462-
**kwargs
456+
self,
457+
scopegroup_id,
458+
address_id,
459+
options,
460+
callback=None,
461+
errback=None,
462+
**kwargs
463463
):
464464
kwargs["address_id"] = address_id
465465
kwargs["scope_group_id"] = scopegroup_id
@@ -472,7 +472,7 @@ def create(
472472
return reservation
473473

474474
def update(
475-
self, reservation_id, options, callback=None, errback=None, **kwargs
475+
self, reservation_id, options, callback=None, errback=None, **kwargs
476476
):
477477
kwargs["options"] = options
478478
body = self._buildBody(**kwargs)

0 commit comments

Comments
 (0)