Fix share aliases logic (#2862) (#2875)

Fixes #2862
pull/18777/head
johanwiren 8 years ago committed by Matt Clay
parent 3f1c3a0532
commit e98eb785df

@ -198,8 +198,9 @@ class Zfs(object):
if source == 'local':
properties[prop] = value
# Add alias for enhanced sharing properties
properties['sharenfs'] = properties.get('share.nfs', None)
properties['sharesmb'] = properties.get('share.smb', None)
if self.enhanced_sharing:
properties['sharenfs'] = properties.get('share.nfs', None)
properties['sharesmb'] = properties.get('share.smb', None)
return properties

Loading…
Cancel
Save