{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/38048","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/38048/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/38048/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/38048/events","html_url":"https://github.com/saltstack/salt/issues/38048","id":193133954,"number":38048,"title":"[2016.11.0] Salt-cloud throws TypeError exception","user":{"login":"ezh","id":118212,"avatar_url":"https://avatars.githubusercontent.com/u/118212?v=3","gravatar_id":"","url":"https://api.github.com/users/ezh","html_url":"https://github.com/ezh","followers_url":"https://api.github.com/users/ezh/followers","following_url":"https://api.github.com/users/ezh/following{/other_user}","gists_url":"https://api.github.com/users/ezh/gists{/gist_id}","starred_url":"https://api.github.com/users/ezh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezh/subscriptions","organizations_url":"https://api.github.com/users/ezh/orgs","repos_url":"https://api.github.com/users/ezh/repos","events_url":"https://api.github.com/users/ezh/events{/privacy}","received_events_url":"https://api.github.com/users/ezh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-02T14:50:49Z","updated_at":"2016-12-02T21:47:46Z","closed_at":null,"body":"### Description of Issue/Question\r\n\r\n`./salt-cloud -p salt-this-machine my-machine` stops execution with `TypeError` exception with `python 3.5.2`\r\n\r\n### Steps to Reproduce Issue\r\nrun any configuration with command `./salt-cloud -p salt-this-machine my-machine` and `saltify` provider/driver\r\n\r\n```\r\n2016-11-28 13:14:42,681 [salt.cloud.cli   ][ERROR   ][75945] There was a profile error: a bytes-like object is required, not 'str'\r\nTraceback (most recent call last):\r\n  File \"/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/cloud/cli.py\", line 284, in run\r\n    self.config.get('names')\r\n  File \"/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/cloud/__init__.py\", line 1457, in run_profile\r\n    ret[name] = self.create(vm_)\r\n  File \"/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/cloud/__init__.py\", line 1287, in create\r\n    output = self.clouds[func](vm_)\r\n  File \"/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/cloud/clouds/saltify.py\", line 63, in create\r\n    ret = __utils__['cloud.bootstrap'](vm_, __opts__)\r\n  File \"/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/utils/cloud.py\", line 532, in bootstrap\r\n    deployed = deploy_script(**deploy_kwargs)\r\n  File \"/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/utils/cloud.py\", line 1332, in deploy_script\r\n    ssh_file(opts, '{0}/minion.pem'.format(tmp_dir), minion_pem, ssh_kwargs)\r\n  File \"/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/utils/cloud.py\", line 1939, in ssh_file\r\n    return sftp_file(dest_path, contents, kwargs, local_file)\r\n  File \"/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/utils/cloud.py\", line 1957, in sftp_file\r\n    os.write(tmpfd, contents)\r\nTypeError: a bytes-like object is required, not 'str'\r\n```\r\n\r\n### Versions Report\r\n```\r\npython -V\r\nPython 3.5.2\r\n```\r\n\r\n```\r\nSalt Version:\r\n           Salt: 2016.11.0rc2-39-g3835f91\r\n\r\nDependency Versions:\r\n           cffi: Not Installed\r\n       cherrypy: Not Installed\r\n       dateutil: 2.6.0\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n         Jinja2: 2.8\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: Not Installed\r\n           Mako: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.8\r\n   mysql-python: Not Installed\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n         Python: 3.5.2 (default, Nov 12 2016, 15:19:34)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.12\r\n          PyZMQ: 16.0.1\r\n           RAET: Not Installed\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n        Tornado: 4.4.2\r\n            ZMQ: 4.1.6\r\n\r\nSystem Versions:\r\n           dist:\r\n        machine: x86_64\r\n        release: 14.5.0\r\n         system: Darwin\r\n        version: 10.10.5 x86_64\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/264571430","html_url":"https://github.com/saltstack/salt/issues/38048#issuecomment-264571430","issue_url":"https://api.github.com/repos/saltstack/salt/issues/38048","id":264571430,"user":{"login":"Ch3LL","id":6886822,"avatar_url":"https://avatars.githubusercontent.com/u/6886822?v=3","gravatar_id":"","url":"https://api.github.com/users/Ch3LL","html_url":"https://github.com/Ch3LL","followers_url":"https://api.github.com/users/Ch3LL/followers","following_url":"https://api.github.com/users/Ch3LL/following{/other_user}","gists_url":"https://api.github.com/users/Ch3LL/gists{/gist_id}","starred_url":"https://api.github.com/users/Ch3LL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ch3LL/subscriptions","organizations_url":"https://api.github.com/users/Ch3LL/orgs","repos_url":"https://api.github.com/users/Ch3LL/repos","events_url":"https://api.github.com/users/Ch3LL/events{/privacy}","received_events_url":"https://api.github.com/users/Ch3LL/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T21:47:46Z","updated_at":"2016-12-02T21:47:46Z","body":"@ezh thanks for the PR! once it has been reviewed/merged please feel free to close this issue or we can."}}
{"actor":{"display_login":"Ch3LL"}}