#NEWLINE# def addServerToHostGroup( group , floatingIp , inventory ) : #NEWLINE# #INDENT# host_group = inventory . get ( group , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# hosts = host_group . get ( 'hosts' , [ ] ) #NEWLINE# hosts . append ( floatingIp ) #NEWLINE# host_group [ 'hosts' ] = hosts #NEWLINE# inventory [ group ] = host_group