The nxos modules read the task level transport variable, thus if the user pass it via provider the all fail with an UnboundLocalError. Fixes #22355