Merge pull request #20 from Azure/development
Updated IPAM plugin to refresh source before all requests
This commit is contained in:
Коммит
78eaf626a4
|
@ -219,6 +219,8 @@ func (plugin *ipamPlugin) releasePool(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
plugin.refreshSource()
|
||||
|
||||
// Process request.
|
||||
as, _, err := plugin.parsePoolId(req.PoolID)
|
||||
if err != nil {
|
||||
|
@ -286,6 +288,8 @@ func (plugin *ipamPlugin) releaseAddress(w http.ResponseWriter, r *http.Request)
|
|||
return
|
||||
}
|
||||
|
||||
plugin.refreshSource()
|
||||
|
||||
// Process request.
|
||||
_, ap, err := plugin.parsePoolId(req.PoolID)
|
||||
if err != nil {
|
||||
|
|
Загрузка…
Ссылка в новой задаче