Fix Salt Package Manager (SPM) exception when calling spm create_repo .