def generate_alton_commands(hotfix_hash):
 template = textwrap.dedent('\n    @alton cut ami for stage-edx-edxapp from prod-edx-edxapp with edx_platform_version={hotfix_hash}\n    @alton cut ami for prod-edge-edxapp from prod-edge-edxapp with edx_platform_version={hotfix_hash}\n    @alton cut ami for prod-edx-edxapp from prod-edx-edxapp with edx_platform_version={hotfix_hash}\n    ')
 return template.strip().format(hotfix_hash=hotfix_hash)

def generate_alton_commands ( hotfix_hash ) : template = textwrap . dedent ( '\n    @alton cut ami for stage-edx-edxapp from prod-edx-edxapp with edx_platform_version={hotfix_hash}\n    @alton cut ami for prod-edge-edxapp from prod-edge-edxapp with edx_platform_version={hotfix_hash}\n    @alton cut ami for prod-edx-edxapp from prod-edx-edxapp with edx_platform_version={hotfix_hash}\n    ' ) return template . strip ( ) . format ( hotfix_hash = hotfix_hash )
generates commands for alton to cut amis from the git hash of the hotfix .