summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorjohanwiren <johan.wiren.se@gmail.com>2016-09-08 18:01:27 +0200
committerRené Moser <mail@renemoser.net>2016-09-08 18:01:27 +0200
commitb88fdde22c45a504619ff0cffa5b6da12fc30a01 (patch)
tree646b73615583bbdf3d5abb49df80b073e4f09b01 /system
parent9a338b05eb52b13056366f0cafca759513110e32 (diff)
downloadansible-modules-extras-b88fdde22c45a504619ff0cffa5b6da12fc30a01.tar.gz
Fix share aliases logic (#2862) (#2875)
Fixes #2862
Diffstat (limited to 'system')
-rw-r--r--system/zfs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/zfs.py b/system/zfs.py
index fb987017..0d79569d 100644
--- a/system/zfs.py
+++ b/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