alces-software / metalware

Tools and conventions for improving bare metal machine management
Other
2 stars 0 forks source link

Allow plugin enable question to be passed to --answers #444

Closed ColonelPanicks closed 6 years ago

ColonelPanicks commented 6 years ago

It would be beneficial to be able to enable/disable plugins via the metal configure --answers method, currently what happens with these answers is:

[root@gateway ~]# metal configure domain --answers '{ "metalware_internal--plugin_enabled--firstrun": "true" }'
error: Failed to validate answers:
A type mismatch has been detected in the following question(s):
{:question=>:"metalware_internal--plugin_enabled--firstrun", :answer=>"true", :type=>"boolean"}

Currently the workaround is to echo these values to the answers file which works without issue.

bobwhitelock commented 6 years ago

What happens if you run metal configure domain --answers '{ "metalware_internal--plugin_enabled--firstrun": true }'?

ColonelPanicks commented 6 years ago

Ahhh darn, that's the ticket. My bad. This isn't an issue then!

bobwhitelock commented 6 years ago

No worries, "true" != true :slightly_smiling_face:.