#NEWLINE# def _set_package_url( agent ) : #NEWLINE# #INDENT# file_server = agent [ 'manager_file_server_url' ] #NEWLINE# if agent [ 'windows' ] : #NEWLINE# #INDENT# agent_file = 'cloudify-windows-agent.exe' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( distro , _ , distro_codename ) = platform . dist ( ) #NEWLINE# agent [ 'distro' ] = distro . lower ( ) #NEWLINE# agent [ 'distro_codename' ] = distro_codename . lower ( ) #NEWLINE# agent_file = '{0}-{1}-agent.tar.gz' . format ( _ [ 'distro' ] , agent [ 'distro_codename' ] ) #NEWLINE# #UNINDENT# agent [ 'package_url' ] = '{0}/packages/agents/{1}' . format ( file_server , agent_file )