fixes #5896 - unable to set compute-resource's 'Console passwords' option in API

```attrs[:setpw] == 1``` seems more readable for me