def os_release(username, ip_address):
with settings(hide('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>warn_only=True, capture=True):<EOL><INDENT>_os_release = {}<EOL>with settings(host_string=username + '<STR_LIT:@>' + ip_address):<EOL><INDENT>data = run('<STR_LIT>')<EOL><DEDENT>for line in data.split('<STR_LIT:\n>'):<EOL><INDENT>if not line:<EOL><INDENT>continue<EOL><DEDENT>parts = line.split('<STR_LIT:=>')<EOL>if len(parts) == <NUM_LIT:2>:<EOL><INDENT>_os_release[parts[<NUM_LIT:0>]] = parts[<NUM_LIT:1>].strip('<STR_LIT>')<EOL><DEDENT><DEDENT>return _os_release<EOL><DEDENT>
returns /etc/os-release in a dictionary