summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/automount.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins/automount.py')
-rw-r--r--ipalib/plugins/automount.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipalib/plugins/automount.py b/ipalib/plugins/automount.py
index 31c143d84..9df400d2e 100644
--- a/ipalib/plugins/automount.py
+++ b/ipalib/plugins/automount.py
@@ -845,6 +845,10 @@ class automountmap_add_indirect(LDAPCreate):
automountkey=options['key'], **kw
)
else: # adding to auto.master
+ # Ensure auto.master exists
+ self.api.Command['automountmap_show'](
+ keys[0], options['parentmap']
+ )
options['automountinformation'] = keys[1]
self.api.Command['automountkey_add'](
keys[0], u'auto.master',