Merge "make aggregation-method argument as a mandatory field"
This commit is contained in:
		@@ -523,6 +523,7 @@ def common_alarm_gnocchi_arguments(rule_namespace, create=False):
 | 
				
			|||||||
                   help='Number of periods to evaluate over.')
 | 
					                   help='Number of periods to evaluate over.')
 | 
				
			||||||
        @utils.arg('--aggregation-method', metavar='<AGGREATION>',
 | 
					        @utils.arg('--aggregation-method', metavar='<AGGREATION>',
 | 
				
			||||||
                   dest=rule_namespace + '/aggregation_method',
 | 
					                   dest=rule_namespace + '/aggregation_method',
 | 
				
			||||||
 | 
					                   required=create,
 | 
				
			||||||
                   help=('Aggregation method to use, one of: ' +
 | 
					                   help=('Aggregation method to use, one of: ' +
 | 
				
			||||||
                         str(GNOCCHI_AGGREGATION) + '.'))
 | 
					                         str(GNOCCHI_AGGREGATION) + '.'))
 | 
				
			||||||
        @utils.arg('--comparison-operator', metavar='<OPERATOR>',
 | 
					        @utils.arg('--comparison-operator', metavar='<OPERATOR>',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user