labpack/platforms/aws/ec2.py
def _validate_tags(self, tag_values, title):

        ''' a helper method to validate tag key and value pairs '''
        
        if tag_values:
            if len(tag_values.keys()) > 10:
                raise Exception("%s(tag_values={...}) is invalid.\n Value %s for field .tag_values failed test 'max_keys': 10" % (title, len(tag_values.keys())))
            for key, value in tag_values.items():
                object_title = '%s(%s)' % (title, key)
                self.fields.validate(value, '.tag_key', object_title)
                object_title = '%s(%s=%s)' % (title, key, str(value))
                self.fields.validate(value, '.tag_key', object_title)
 a helper method to validate tag key and value pairs 
a helper method to validate tag key and value pairs
a helper method to validate tag key and value pairs
def _validate_tags(self, tag_values, title):
        if tag_values:
            if len(tag_values.keys()) > 10:
                raise Exception("%s(tag_values={...}) is invalid.\n Value %s for field .tag_values failed test 'max_keys': 10" % (title, len(tag_values.keys())))
            for key, value in tag_values.items():
                object_title = '%s(%s)' % (title, key)
                self.fields.validate(value, '.tag_key', object_title)
                object_title = '%s(%s=%s)' % (title, key, str(value))
                self.fields.validate(value, '.tag_key', object_title)
def _validate_tags ( self , tag_values , title ) : if tag_values : if len ( tag_values . keys ( ) ) > 10 : raise Exception ( "%s(tag_values={...}) is invalid.\n Value %s for field .tag_values failed test 'max_keys': 10" % ( title , len ( tag_values . keys ( ) ) ) ) for key , value in tag_values . items ( ) : object_title = '%s(%s)' % ( title , key ) self . fields . validate ( value , '.tag_key' , object_title ) object_title = '%s(%s=%s)' % ( title , key , str ( value ) ) self . fields . validate ( value , '.tag_key' , object_title )
a helper method to validate tag key and value pairs
a helper method to validate tag key and value pairs
''' a helper method to validate tag key and value pairs '''
self
tag_values
title