1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

Fixes #2862
This commit is contained in:
johanwiren 2016-09-08 18:01:27 +02:00 committed by Matt Clay
parent 3f1c3a0532
commit e98eb785df

View file

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