Skip to content

Commit 2a4ca40

Browse files
authored
Merge pull request #73 from elenabushneva/load-reservation-add-missing-id
add optional id to loadReservation
2 parents 2536da5 + 2746c01 commit 2a4ca40

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ns1/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,12 +513,17 @@ def createReservation(
513513
return reservation.create(callback=callback, errback=errback, **kwargs)
514514

515515
def loadReservation(
516-
self, scopegroup_id, address_id, callback=None, errback=None
516+
self,
517+
scopegroup_id,
518+
address_id,
519+
reservation_id=None,
520+
callback=None,
521+
errback=None,
517522
):
518523
import ns1.ipam
519524

520525
reservation = ns1.ipam.Reservation(
521-
self.config, scopegroup_id, address_id
526+
self.config, scopegroup_id, address_id, reservation_id
522527
)
523528

524529
return reservation.load(callback=callback, errback=errback)

0 commit comments

Comments
 (0)