[chef] Confused by range search


Chronological Thread 
  • From: Jeppe Nejsum Madsen < >
  • To: " " < >
  • Subject: [chef] Confused by range search
  • Date: Thu, 22 Aug 2013 11:04:40 +0200

Ohai,

Maybe I'm expecting too much, but this is slightly confusing:

$ knife search 'ipaddress:[172.26.133.95 TO 172.26.133.99]'|grep IP|sort
IP:          172.26.133.95
IP:          172.26.133.96
IP:          172.26.133.97
IP:          172.26.133.98
IP:          172.26.133.99

$ knife search 'ipaddress:[172.26.133.95 TO 172.26.133.105]'
0 items found

Seems like I have to match the number of digits for the range query to work:

$ knife search 'ipaddress:[172.26.133.100 TO 172.26.133.105]'|grep IP|sort
IP:          172.26.133.100
IP:          172.26.133.101
IP:          172.26.133.102
IP:          172.26.133.103
IP:          172.26.133.104
IP:          172.26.133.105

Is this WAD?

/Jeppe




Archive powered by MHonArc 2.6.16.

§