squarescale / hssh

Heaven's SSH : a cloud wrapper for ssh
0 stars 2 forks source link

Improve host matching method #15

Closed jeromer closed 5 years ago

jeromer commented 5 years ago

This commit changes the way hosts are matched.

Before the filter syntax was fieldnameregex:fieldvalueregex

This commit changes this to lowercasefieldname:fieldvaludregex

Field names are lowered cloudresolver's Host attributes [1]

https://github.com/squarescale/cloudresolver/blob/master/cloudresolver.go#L3

So right now we can select a specific field and apply a regex on it.