#NEWLINE# def _create_security_group_request_dict( self , security_groups ) : #NEWLINE# #INDENT# server = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# server [ 'name' ] = 'new-server-test' #NEWLINE# server [ 'imageRef' ] = 'cedef40a-ed67-4d10-800e-17455edce175' #NEWLINE# server [ 'flavorRef' ] = 1 #NEWLINE# if ( security_groups is not None ) : #NEWLINE# #INDENT# sg_list = [ ] #NEWLINE# for name in security_groups : #NEWLINE# #INDENT# sg_list . append ( { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# server [ 'security_groups' ] = sg_list #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'server' : server , #NEWLINE# #UNINDENT# }