Bug #1416

-d option is used in oneimage for two different options

Added by Daniel Molina over 8 years ago. Updated over 8 years ago.

Status:ClosedStart date:08/14/2012
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:CLI
Target version:Release 3.8
Resolution:worksforme Pull request:
Affected Versions:OpenNebula 3.6

Description

From Shantanu Pavgi:

It seems like oneimage command has used short-option '-d' for both datastore and delay option. I haven't checked the actual command implementation, but documentation seems to be conveying duplicate use of the same option flag. I couldn't find it in currently opened issues, but sorry if it has been already reported.

{{{
## SYNOPSIS

`oneimage` <command> [<args>] [<options>]

## OPTIONS
     -d, --datastore id|name   Selects the datastore
     -x, --xml                 Show the resource in xml format
     -l, --list x,y,z          Selects columns to display with list command
     -d, --delay x             Sets the delay in seconds for top command
     -n, --numeric             Do not translate user and group IDs
     -v, --verbose             Verbose mode
     -h, --help                Show this message
     -V, --version             Show version and copyright information

}}}

Version: OpenNebula 3.6.0

When using -d in ''top'' command it throws an exception

  ID USER     GROUP    NAME             TYPE          REGTIME PUB PER STAT  RVMS
undefined method `call' for nil:NilClass

History

#1 Updated by Ruben S. Montero over 8 years ago

  • Assignee changed from Daniel Molina to Javi Fontan

#2 Updated by Ruben S. Montero over 8 years ago

  • Status changed from New to Assigned

#3 Updated by Javi Fontan over 8 years ago

  • Status changed from Assigned to Closed
  • Resolution set to worksforme

-d/--datastore is used for create, -d/--delay is only used in top. There is no overlapping. I can not reproduce the error.

Also available in: Atom PDF