Smart_proxy_ipam add fqdn

hi,

not a developer, and no ruby knowledge.

I have configured the smart_proxy_ipam and it works, so it requests and gets the first free address on a subnet available in phpipam, and saves it address in both the foreman instance as in phpipam, but it does not register the phpipam object with a fqdn.

I already created an issue in their repository hostname missing when adding ip in phpipam · Issue #61 · grizzthedj/smart_proxy_ipam · GitHub but maybe with some guidance I can fix it myself and contribute back something.

The problem is that when creating the ip address in phpipam in params (I guess this is a variable in the web request) no such information is available. Obviously this information is available to the foreman because it creates the host object in it properly, but how?

I am not sure how to get this info from the foreman. Both the foreman as the smart proxy are running on the same host, biy the way.