<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 10/12/2010 02:20 PM, Rob Crittenden wrote:
<blockquote cite="mid:4CB4A6FA.2030809@redhat.com" type="cite">Rob
Crittenden wrote:
  <br>
  <blockquote type="cite">Add ability to import automount files from
the command-line.
    <br>
    <br>
Support is fairly basic right now and will only work on the CLI. All
the
    <br>
work is done on the client side.
    <br>
    <br>
To continue past errors use the --continue option.
    <br>
    <br>
Fixed a bug where direct mounts weren't always added properly.
    <br>
    <br>
Added real user documentation to the plugin.
    <br>
    <br>
rob
    <br>
  </blockquote>
  <br>
Updated patch. The local get_args() isn't needed any more.
  <br>
  <br>
rob
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Freeipa-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeipa-devel@redhat.com">Freeipa-devel@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/freeipa-devel">https://www.redhat.com/mailman/listinfo/freeipa-devel</a></pre>
</blockquote>
ACK<br>
<br>
<br>
This really should have a unit test.  <br>
It doesn't fail too cleanly:<br>
<br>
[ayoung@ipa freeipa]$ echo BLAH > /tmp/automount.garbage<br>
[ayoung@ipa freeipa]$ ipa  automountlocation-import
/tmp/automount.garbage <br>
Master file: <br>
[ayoung@ipa freeipa]$ ipa  automountlocation-import default
/tmp/automount.garbage <br>
ipa: ERROR: non-public: IndexError: list index out of range<br>
Traceback (most recent call last):<br>
  File "/usr/lib/python2.6/site-packages/ipalib/backend.py", line 125,
in execute<br>
    result = self.Command[_name](*args, **options)<br>
  File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 401,
in __call__<br>
    ret = self.run(*args, **options)<br>
  File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 675,
in run<br>
    return self.forward(*args, **options)<br>
  File "/usr/lib/python2.6/site-packages/ipalib/plugins/automount.py",
line 358, in forward<br>
    if am[1].startswith('/'):<br>
IndexError: list index out of range<br>
ipa: ERROR: an internal error has occurred<br>
<br>
</body>
</html>