#207 Add get compose option to client
Merged 10 months ago by ralph. Opened 10 months ago by rhartman.
rhartman/odcs master  into  master

Add get compose option to client
Ryan Hartman • 10 months ago  
file modified
+4

@@ -2,6 +2,10 @@ 

  

  All notable changes to this project will be documented in this file.

  

+ ## 0.2.6.2

+ - Release date:

+ - Added "get" option to the client cli

+ 

  ## 0.2.6.1

    - Release date: 2018-06-14

    - Bugfix to the `packages` list change.

file modified
+9

@@ -123,6 +123,13 @@ 

      'compose_id', default=None,

      help="ODCS compose id")

  

+ get_parser = subparsers.add_parser(

+     'get', help='get compose info')

+ get_parser.set_defaults(command='get')

+ get_parser.add_argument(

+     'compose_id', default=None,

+     help="ODCS compose id")

+ 

  args = parser.parse_args()

  

  if args.server is None:

@@ -185,6 +192,8 @@ 

          result = client.delete_compose(args.compose_id)

      elif args.command == "renew":

          result = client.renew_compose(args.compose_id)

+     elif args.command == "get":

+         result = client.get_compose(args.compose_id)

      else:

          print("Unknown command %s" % args.command)

  except requests.exceptions.HTTPError as e:

no initial comment

:+1: :)

The jenkins failure is unrelated. Thanks!

Pull-Request has been merged by ralph

10 months ago