Move write line to the state file.
Move write line to the state file.

Putting it as the initial string for the StringIO causes it to not
behave when using print('', file=)

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt