#1520 automountmap gets added even though the return code is 1
Closed: Fixed None Opened 10 years ago by rcritten.


# ipa  automountlocation-add baltimore
Added automount location "baltimore"
  Location: baltimore

# ipa automountmap-add baltimore auto.share
Added automount map "auto.share"
  Map: auto.share

# ipa automountkey-add baltimore auto.master --key=/share --info=auto.share
Added automount key "auto.master"
  Key: /share
  Mount information: auto.share

# ipa automountmap-add-indirect baltimore auto.share2 --mount=/usr/share/man
Added automount map "auto.share2"
  Map: auto.share2

# ipa automountmap-add-indirect baltimore auto.share3 --mount=/usr/share/man
ipa: ERROR: key named /usr/share/man already exists
(as expected)

# echo $?

# /usr/bin/ldapsearch -LLL -x -h localhost -D "cn=Directory Manager" -w
Secret123 -b dc=lab,dc=eng,dc=pnq,dc=redhat,dc=com
dn: automountmapname=auto.share3,cn=baltimore,cn=automount,dc=lab,dc=eng,dc=pn
objectClass: automountmap
objectClass: top
automountMapName: auto.share3

Metadata Update from @rcritten:
- Issue assigned to rcritten
- Issue set to the milestone: FreeIPA 2.1 - 2011/07

5 years ago

Login to comment on this ticket.