Print exception details on update failure
Change-Id: Ifa924da9a2c6a9fa2425b5d1f508ec52feea091c Closes-Bug: #1664739
This commit is contained in:
		
				
					committed by
					
						
						Vijendar Komalla
					
				
			
			
				
	
			
			
			
						parent
						
							29497201ab
						
					
				
				
					commit
					485637798b
				
			@@ -208,7 +208,12 @@ def do_cluster_update(cs, args):
 | 
			
		||||
            "Rollback is not supported in API v%s. "
 | 
			
		||||
            "Please use API v1.3+." % args.magnum_api_version)
 | 
			
		||||
    patch = magnum_utils.args_array_to_patch(args.op, args.attributes[0])
 | 
			
		||||
    cluster = cs.clusters.update(args.cluster, patch, args.rollback)
 | 
			
		||||
    try:
 | 
			
		||||
        cluster = cs.clusters.update(args.cluster, patch, args.rollback)
 | 
			
		||||
    except Exception as e:
 | 
			
		||||
        print("ERROR: %s" % e.details)
 | 
			
		||||
        return
 | 
			
		||||
 | 
			
		||||
    if args.magnum_api_version and args.magnum_api_version == '1.1':
 | 
			
		||||
        _show_cluster(cluster)
 | 
			
		||||
    else:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user