Skip to content

Commit 018ec59

Browse files
committed
fix reservation creation
1 parent 13ffdd8 commit 018ec59

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ns1/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def createReservation(
503503
import ns1.ipam
504504

505505
reservation = ns1.ipam.Reservation(
506-
self.config, scopegroup_id, address_id, dhcp_options, mac
506+
self.config, scopegroup_id, address_id, options=dhcp_options, mac=mac
507507
)
508508

509509
return reservation.create(callback=callback, errback=errback, **kwargs)

ns1/ipam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def reserve(
348348
raise ScopegroupException("Scope Group not loaded")
349349

350350
reservation = Reservation(
351-
self.config, scopegroup_id, self.id, options, mac
351+
self.config, scopegroup_id, self.id, options=options, mac=mac
352352
)
353353

354354
return reservation.create(callback=callback, errback=errback)

0 commit comments

Comments
 (0)