Environment variable in provisioning script

Dan Morphis dan at milkcarton.com
Fri May 19 02:01:09 EDT 2017


When I wrote the ext script, it was one of those "there will never be more than one ip on this box so returning as an array of 1 will cause no harm" deals. Yeah, that didn't work out as planned :).

-dan

> On May 18, 2017, at 9:06 AM, Zaid Abdulla <zaid at genieacs.com> wrote:
> 
>> On Wed, 2017-05-17 at 19:36 -0800, Dan Morphis wrote:
>> When we switched over to v1.1 last week, the extension script
>> returned two ips, the public and private. I quickly caught the issue
>> and hard coded the script to use the private ip.
> 
> Why not always return a single IP? You can read environment variables
> from your extension script if that's how you want to distinguish
> between development and production environments.
> 
> -- 
> Zaid Abdulla <zaid at genieacs.com>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users


More information about the Users mailing list