Menu

#3937 Improve lsdef return values

2.8.4
pending
None
object definition
5
2014-03-14
2013-05-30
Vadim
No

It would be nice to make "lsdef" to return non-zero code in case of failure to find an object and to print error message to stderr instead of stdout. This will help with using lsdef in scripts.

Here is what we have now:

lsdef -t osdistro -o rhels6.3-x86_63 2>/dev/null

Could not find an object named 'rhels6.3-x86_63' of type 'osdistro'.

echo $?

0

Discussion

  • Bruce

    Bruce - 2013-05-31
    • assigned_to: Guang Cheng Li
     
  • Bruce

    Bruce - 2013-05-31

    Guang Cheng,

    This seems more like a bug than a feature request. Can you work on this? Thx.

     
  • Bruce

    Bruce - 2013-12-09
    • status: open --> accepted
    • Group: 2.0 --> 2.8.4
     
  • Bruce

    Bruce - 2013-12-09

    Guang Cheng,

    Can you do this in 2.8.4? Would be a good thing to clean up. Thx.

     
  • Guang Cheng Li

    Guang Cheng Li - 2013-12-10

    Ticket moved from /p/xcat/feature-requests/163/

    Can't be converted:

    • _milestone: 2.8.4
     
  • Guang Cheng Li

    Guang Cheng Li - 2013-12-10
    • Priority: 6 --> 5
     
  • Guang Cheng Li

    Guang Cheng Li - 2014-03-14

    Fixed in 2.8.4 and 2.9.

    2.8.4: commit a9e5fa3badeed27dfda7875f11ea6bb2d95803e2
    2.9: commit 6f79aead61af237066263325c753bf60f852b3bd

     
  • Guang Cheng Li

    Guang Cheng Li - 2014-03-14
    • status: accepted --> pending
    • component: --> general
     
  • Guang Cheng Li

    Guang Cheng Li - 2014-03-14
    • component: general --> object definition
     
MongoDB Logo MongoDB