fixed some patching on get_nonlocal_ip for the new keyword

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>