Re: [openstack-dev] [Heat] New function: first_nonnull

2014-11-09 Thread Angus Salkeld
On 06/11/2014 8:32 AM, Clint Byrum cl...@fewbar.com wrote: Excerpts from Lee, Alexis's message of 2014-11-05 15:46:43 +0100: I'm considering adding a function which takes a list and returns the first non-null, non-empty value in that list. So you could do EG: some_thing:

Re: [openstack-dev] [Heat] New function: first_nonnull

2014-11-09 Thread Clint Byrum
Excerpts from Angus Salkeld's message of 2014-11-09 00:15:42 -0800: On 06/11/2014 8:32 AM, Clint Byrum cl...@fewbar.com wrote: Excerpts from Lee, Alexis's message of 2014-11-05 15:46:43 +0100: I'm considering adding a function which takes a list and returns the first non-null,

Re: [openstack-dev] [Heat] New function: first_nonnull

2014-11-09 Thread Clint Byrum
Excerpts from Zane Bitter's message of 2014-11-06 15:35:09 -0800: On 06/11/14 20:44, Steven Hardy wrote: On Wed, Nov 05, 2014 at 02:46:43PM +, Lee, Alexis wrote: I'm considering adding a function which takes a list and returns the first non-null, non-empty value in that

Re: [openstack-dev] [Heat] New function: first_nonnull

2014-11-06 Thread Fox, Kevin M
Except it penalizes us bad spellers. ;) Kevin From: Clint Byrum Sent: Wednesday, November 05, 2014 11:26:43 PM To: openstack-dev Subject: Re: [openstack-dev] [Heat] New function: first_nonnull Excerpts from Lee, Alexis's message of 2014-11-05 15:46:43 +0100

Re: [openstack-dev] [Heat] New function: first_nonnull

2014-11-06 Thread Steven Hardy
On Wed, Nov 05, 2014 at 02:46:43PM +, Lee, Alexis wrote: I'm considering adding a function which takes a list and returns the first non-null, non-empty value in that list. So you could do EG: some_thing: config: ControlVIP:

Re: [openstack-dev] [Heat] New function: first_nonnull

2014-11-06 Thread Zane Bitter
On 06/11/14 20:44, Steven Hardy wrote: On Wed, Nov 05, 2014 at 02:46:43PM +, Lee, Alexis wrote: I'm considering adding a function which takes a list and returns the first non-null, non-empty value in that list. So you could do EG: some_thing: config:

[openstack-dev] [Heat] New function: first_nonnull

2014-11-05 Thread Lee, Alexis
I'm considering adding a function which takes a list and returns the first non-null, non-empty value in that list. So you could do EG: some_thing: config: ControlVIP: first_nonnull: - {get_param: ControlVIP} - {get_attr:

Re: [openstack-dev] [Heat] New function: first_nonnull

2014-11-05 Thread Fox, Kevin M
, November 05, 2014 6:46:43 AM To: OpenStack Development Mailing List (not for usage questions) Subject: [openstack-dev] [Heat] New function: first_nonnull I’m considering adding a function which takes a list and returns the first non-null, non-empty value in that list. So you could do EG: some_thing

Re: [openstack-dev] [Heat] New function: first_nonnull

2014-11-05 Thread Steve Baker
We have a template usability session at 9am this morning, and we'll be covering these sort of utility functions as part of that session. If you don't make it we can follow up later. On 05/11/14 15:46, Lee, Alexis wrote: I’m considering adding a function which takes a list and returns the

Re: [openstack-dev] [Heat] New function: first_nonnull

2014-11-05 Thread Clint Byrum
Excerpts from Lee, Alexis's message of 2014-11-05 15:46:43 +0100: I'm considering adding a function which takes a list and returns the first non-null, non-empty value in that list. So you could do EG: some_thing: config: ControlVIP: first_nonnull: