@staticmethod<EOL><INDENT>def _create_tmp_file(config):<DEDENT>
tmp_dir = tempfile.gettempdir()<EOL>rand_fname = py23_compat.text_type(uuid.uuid4())<EOL>filename = os.path.join(tmp_dir, rand_fname)<EOL>with open(filename, '<STR_LIT>') as fobj:<EOL><INDENT>fobj.write(config)<EOL><DEDENT>return filename<EOL>
Write temp file and for use with inline config and SCP.