Shuichi Ihara wrote: > Hi, > > I'm using cobbler-1.4.0 on rhel5.2, but we see some unwanted messages, when > we have > invalid option (by mis-operation) that is like "no" add/edit/remove/... > option for > distro/profile/system/... > > I have never seen these messages on cobbler-1.0.3 even if we did same > mis-operations. > The "usage" was only showed up. > > Here is an example on 1.4.0. > > # cobbler distro --name > usage: > ====== > cobbler distro add [ARGS] > cobbler distro copy [ARGS] > cobbler distro dumpvars [ARGS] > cobbler distro edit [ARGS] > cobbler distro find [ARGS] > cobbler distro list [ARGS] > cobbler distro remove [ARGS] > cobbler distro rename [ARGS] > cobbler distro report [ARGS] > > DistroFunction instance has no attribute 'options' > File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 83, in main > rc = BootCLI().run(sys.argv) > > File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 61, in run > return self.loader.run(args) > > File "/usr/lib/python2.4/site-packages/cobbler/commands.py", line 122, in > run > return fn.run() > > File "/usr/lib/python2.4/site-packages/cobbler/modules/cli_distro.py", line > 90, in run > obj = self.object_manipulator_start(self.api.new_distro,self.api.distros) > > File "/usr/lib/python2.4/site-packages/cobbler/commands.py", line 335, in > object_manipulator_start > if not self.options > _______________________________________________ > cobbler mailing list > [email protected] > https://fedorahosted.org/mailman/listinfo/cobbler >
Yes, we should be showing the usage message in this case. If can you please file a bug in Trac (fedorahosted.org/cobbler, for accounts to login if you don't have one, admin.fedoraproject.org/accounts) that would be helpful. Thanks! --Michael _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
