Skip to content

Commit

Permalink
Merge pull request #104 from grycap/devel
Browse files Browse the repository at this point in the history
Fix system_name func
  • Loading branch information
micafer authored Jul 12, 2024
2 parents 699fd4a + 94d87a8 commit 1d6520d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions im_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def main(operation, options, args, parser):
if not options.quiet:
print("Info about VM with ID: %s" % vm_id)
if vm_succes:
print(vm_radl)
if not options.system_name or (options.system_name and vm_radl != ""):
print(vm_radl)
else:
print("ERROR getting the information about the VM: " + vm_radl)
else:
Expand Down Expand Up @@ -397,9 +398,9 @@ def get_parser():
help="Force the deletion of the infrastructure")
parser.add_option("-q", "--quiet", action="store_true", default=False, dest="quiet",
help="Work in quiet mode")
parser.add_option("-n", "--name", action="store_true", default=None, dest="name",
parser.add_option("-n", "--name", action="store_true", default=False, dest="name",
help="Use infrastructure name instead of ID")
parser.add_option("-s", "--system_name", action="store_true", default=None, dest="system_name",
parser.add_option("-s", "--system_name", default=None, dest="system_name", nargs=1, type="string",
help="Filter VMs by system name")
parser.add_operation_help('list', '')
parser.add_operation_help('create', '<radl_file> [async_flag]')
Expand Down
2 changes: 1 addition & 1 deletion imclient/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .imclient import IMClient

__all__ = ['IMClient']
version = "1.8.0"
version = "1.8.1"

0 comments on commit 1d6520d

Please sign in to comment.