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

Fixes #2862
reviewable/pr18780/r1
johanwiren 8 years ago committed by René Moser
parent 9a338b05eb
commit b88fdde22c

@ -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