Bug #2339

Unhelpful error when using --net option (invalid) with onetemplate or onevm create

Added by Jaime Melis almost 7 years ago. Updated over 6 years ago.

Status:ClosedStart date:09/26/2013
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:CLI
Target version:Release 4.6
Resolution:wontfix Pull request:
Affected Versions:OpenNebula 4.2

Description

$ onetemplate create --net test 
command create: argument 0 must be one of file,

History

#1 Updated by Javi Fontan over 6 years ago

This problem happens because optparse library autocompletes parameters. This --net is completed to --net_context and it does not have extra argument so "test" is the first argument to the command (the file template). It gives error as the file "test" is not found.

Parameter autocompletion should be disabled.

#2 Updated by Javi Fontan over 6 years ago

  • Target version deleted (Release 4.4)

#3 Updated by Javi Fontan over 6 years ago

  • Status changed from New to Pending
  • Assignee set to Javi Fontan

#4 Updated by Ruben S. Montero over 6 years ago

  • Status changed from Pending to New
  • Target version set to Release 4.6

#5 Updated by Javi Fontan over 6 years ago

  • Status changed from New to Closed
  • Resolution set to wontfix

Also available in: Atom PDF