Petals ESB CLI

No confirmation is asked shutdowning a container in command line mode

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.0
  • Fix Version/s: 2.1.0
  • Component/s: Command 'stop'
  • Security Level: Public
  • Description:
    Hide

    The following command is executed without confirmation:

    ~/petals-cli-2.0.0/bin$ ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c stop --shutdown
    ~/petals-cli-2.0.0/bin$

    and the container is correctly shutdown.

    An error should occur if no '-y' is set on the command line or as command argument.

    For information, a confirmation is asked in interactive mode:

    ~/petals-cli-2.0.0/bin$ ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -C
    petals-cli@localhost:7700>stop --shutdown
    Are you sure you want to shutdown the container? (y/n) y
    petals-cli>
    Show
    The following command is executed without confirmation:
    ~/petals-cli-2.0.0/bin$ ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c stop --shutdown
    ~/petals-cli-2.0.0/bin$
    and the container is correctly shutdown. An error should occur if no '-y' is set on the command line or as command argument. For information, a confirmation is asked in interactive mode:
    ~/petals-cli-2.0.0/bin$ ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -C
    petals-cli@localhost:7700>stop --shutdown
    Are you sure you want to shutdown the container? (y/n) y
    petals-cli>
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Sat, 6 Oct 2012 - 22:23:23 +0200

Fix in trunk
User documentation updated

Show
Christophe DENEUX added a comment - Sat, 6 Oct 2012 - 22:23:23 +0200 Fix in trunk User documentation updated

People

Dates

  • Created:
    Fri, 5 Oct 2012 - 15:24:54 +0200
    Updated:
    Sat, 6 Oct 2012 - 22:23:24 +0200
    Resolved:
    Sat, 6 Oct 2012 - 22:23:20 +0200