From e98eb785dfdd24d9e4fc56f5badbeb0f5b984bab Mon Sep 17 00:00:00 2001 From: johanwiren Date: Thu, 8 Sep 2016 18:01:27 +0200 Subject: [PATCH] Fix share aliases logic (#2862) (#2875) Fixes #2862 --- lib/ansible/modules/extras/system/zfs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/system/zfs.py b/lib/ansible/modules/extras/system/zfs.py index fb987017d13..0d79569d77a 100644 --- a/lib/ansible/modules/extras/system/zfs.py +++ b/lib/ansible/modules/extras/system/zfs.py @@ -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