mirror of https://github.com/hashicorp/packer
Creating the Name() function for every gadget we have is superfluous a bit, as we're essentially parroting the name of the test itself as implementation for the function. So instead of requiring every checker implements `Name', we now default to returning the type name, but if the Name function exists for the checker, we invoke it and return the value for that function. This allows us to only define the function where needed, and not systematically.pull/12983/head
parent
b62e8cef9c
commit
045b7b7365
Loading…
Reference in new issue