fix for salt-specific urlparse
Merge pull request #19218 from grischa/ec2-fix

fix for salt-specific urlparse