Actually, that check is wrong. It should be:
```unless keystone_protocol == 'https'```