diff --git a/salt/config.py b/salt/config.py index 5073ded629..a7727ecc65 100644 --- a/salt/config.py +++ b/salt/config.py @@ -2390,8 +2390,16 @@ def is_profile_configured(opts, provider, profile_name): .. versionadded:: Beryllium ''' - required_keys = ['image', 'provider', 'size'] + # Standard dict keys required by all drivers. + required_keys = ['image', 'provider'] alias, driver = provider.split(':') + + # Most drivers need a size, but some do not. + non_size_drivers = ['parallels', 'softlayer', 'softlayer_hw'] + + if driver not in non_size_drivers: + required_keys.append('size') + provider_key = opts['providers'][alias][driver] profile_key = opts['providers'][alias][driver]['profiles'][profile_name]