mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add missing automount summaries
https://fedorahosted.org/freeipa/ticket/1509 https://fedorahosted.org/freeipa/ticket/1510
This commit is contained in:
parent
4ff959f55d
commit
d4310c07a9
@ -206,6 +206,9 @@ class automountlocation_add(LDAPCreate):
|
||||
"""
|
||||
Create a new automount location.
|
||||
"""
|
||||
|
||||
msg_summary = _('Added automount location "%(value)s"')
|
||||
|
||||
def post_callback(self, ldap, dn, entry_attrs, *keys, **options):
|
||||
# create auto.master for the new location
|
||||
self.api.Command['automountmap_add'](keys[-1], u'auto.master')
|
||||
@ -214,6 +217,7 @@ class automountlocation_add(LDAPCreate):
|
||||
)
|
||||
return dn
|
||||
|
||||
|
||||
api.register(automountlocation_add)
|
||||
|
||||
|
||||
@ -222,6 +226,8 @@ class automountlocation_del(LDAPDelete):
|
||||
Delete an automount location.
|
||||
"""
|
||||
|
||||
msg_summary = _('Deleted automount location "%(value)s"')
|
||||
|
||||
api.register(automountlocation_del)
|
||||
|
||||
|
||||
@ -238,6 +244,11 @@ class automountlocation_find(LDAPSearch):
|
||||
Search for an automount location.
|
||||
"""
|
||||
|
||||
msg_summary = ngettext(
|
||||
'%(count)d automount location matched',
|
||||
'%(count)d automount locations matched', 0
|
||||
)
|
||||
|
||||
api.register(automountlocation_find)
|
||||
|
||||
|
||||
@ -523,6 +534,8 @@ class automountmap_add(LDAPCreate):
|
||||
Create a new automount map.
|
||||
"""
|
||||
|
||||
msg_summary = _('Added automount map "%(value)s"')
|
||||
|
||||
api.register(automountmap_add)
|
||||
|
||||
|
||||
@ -530,6 +543,9 @@ class automountmap_del(LDAPDelete):
|
||||
"""
|
||||
Delete an automount map.
|
||||
"""
|
||||
|
||||
msg_summary = _('Deleted automount map "%(value)s"')
|
||||
|
||||
def post_callback(self, ldap, dn, *keys, **options):
|
||||
# delete optional parental connection (direct maps may not have this)
|
||||
try:
|
||||
@ -550,6 +566,8 @@ class automountmap_mod(LDAPUpdate):
|
||||
Modify an automount map.
|
||||
"""
|
||||
|
||||
msg_summary = _('Modified automount map "%(value)s"')
|
||||
|
||||
api.register(automountmap_mod)
|
||||
|
||||
|
||||
@ -558,6 +576,11 @@ class automountmap_find(LDAPSearch):
|
||||
Search for an automount map.
|
||||
"""
|
||||
|
||||
msg_summary = ngettext(
|
||||
'%(count)d automount map matched',
|
||||
'%(count)d automount maps matched', 0
|
||||
)
|
||||
|
||||
api.register(automountmap_find)
|
||||
|
||||
|
||||
@ -719,6 +742,9 @@ class automountkey_add(LDAPCreate):
|
||||
"""
|
||||
Create a new automount key.
|
||||
"""
|
||||
|
||||
msg_summary = _('Added automount key "%(value)s"')
|
||||
|
||||
def pre_callback(self, ldap, dn, entry_attrs, *keys, **options):
|
||||
self.obj.check_key_uniqueness(keys[-2], keys[-1], **options)
|
||||
return dn
|
||||
@ -744,6 +770,9 @@ class automountmap_add_indirect(LDAPCreate):
|
||||
"""
|
||||
Create a new indirect mount point.
|
||||
"""
|
||||
|
||||
msg_summary = _('Added automount indirect map "%(value)s"')
|
||||
|
||||
takes_options = LDAPCreate.takes_options + (
|
||||
Str('key',
|
||||
cli_name='mount',
|
||||
@ -774,6 +803,9 @@ class automountkey_del(LDAPDelete):
|
||||
"""
|
||||
Delete an automount key.
|
||||
"""
|
||||
|
||||
msg_summary = _('Deleted automount key "%(value)s"')
|
||||
|
||||
takes_options = LDAPDelete.takes_options + (
|
||||
IA5Str('automountkey',
|
||||
cli_name='key',
|
||||
@ -805,6 +837,9 @@ class automountkey_mod(LDAPUpdate):
|
||||
"""
|
||||
Modify an automount key.
|
||||
"""
|
||||
|
||||
msg_summary = _('Modified automount key "%(value)s"')
|
||||
|
||||
takes_options = LDAPUpdate.takes_options + (
|
||||
IA5Str('newautomountinformation',
|
||||
cli_name='newinfo',
|
||||
@ -839,6 +874,11 @@ class automountkey_find(LDAPSearch):
|
||||
Search for an automount key.
|
||||
"""
|
||||
|
||||
msg_summary = ngettext(
|
||||
'%(count)d automount key matched',
|
||||
'%(count)d automount keys matched', 0
|
||||
)
|
||||
|
||||
api.register(automountkey_find)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user