bugfix: use getattr for variation.prefix/suffix (#17669)
bugfix: use getattr for variation.prefix/suffix (#17669)


LLNL/spack,LLNL/spack,iulian787/spack,iulian787/spack,LLNL/spack,iulian787/spack,iulian787/spack,iulian787/spack,LLNL/spack,LLNL/spack