{"action":"created","issue":{"url":"https://api.github.com/repos/napalm-automation/napalm-ansible/issues/6","repository_url":"https://api.github.com/repos/napalm-automation/napalm-ansible","labels_url":"https://api.github.com/repos/napalm-automation/napalm-ansible/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/napalm-automation/napalm-ansible/issues/6/comments","events_url":"https://api.github.com/repos/napalm-automation/napalm-ansible/issues/6/events","html_url":"https://github.com/napalm-automation/napalm-ansible/issues/6","id":130365931,"number":6,"title":"Trying to compare non-existend diff","user":{"login":"t2d","id":1834580,"avatar_url":"https://avatars.githubusercontent.com/u/1834580?v=3","gravatar_id":"","url":"https://api.github.com/users/t2d","html_url":"https://github.com/t2d","followers_url":"https://api.github.com/users/t2d/followers","following_url":"https://api.github.com/users/t2d/following{/other_user}","gists_url":"https://api.github.com/users/t2d/gists{/gist_id}","starred_url":"https://api.github.com/users/t2d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t2d/subscriptions","organizations_url":"https://api.github.com/users/t2d/orgs","repos_url":"https://api.github.com/users/t2d/repos","events_url":"https://api.github.com/users/t2d/events{/privacy}","received_events_url":"https://api.github.com/users/t2d/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-01T13:46:09Z","updated_at":"2016-02-25T13:58:26Z","closed_at":null,"body":"task:\r\n```\r\n- name: Push configuration with napalm\r\n  napalm_install_config:\r\n    hostname: \"{{ inventory_hostname }}\"\r\n    dev_os: ios\r\n    username: \"{{ cisco_admins.0.username }}\"\r\n    password: \"{{ cisco_admins.0.password }}\"\r\n    config_file: cisco-configs/{{ inventory_hostname }}/running-config\r\n    commit_changes: False\r\n    replace_config: False\r\n    diff_file: cisco-config/{{ inventory_hostname }}/diff\r\n\r\n```\r\n\r\nouput:\r\n```\r\nTASK: [cisco-ios | Push configuration with napalm] **************************** \r\nfailed: [gw01ram1rls.ram1.rls.io] => {\"failed\": true, \"parsed\": false}\r\nSSH connection established to gw01ram1rls.ram1.rls.io:22\r\nInteractive SSH session established\r\n+ service timestamps debug datetime msec\r\n...\r\n+ end\r\nTraceback (most recent call last):\r\n  File \"/home/t/.ansible/tmp/ansible-tmp-1454334065.32-270842437256163/napalm_install_config\", line 1792, in <module>\r\n    main()\r\n  File \"/home/t/.ansible/tmp/ansible-tmp-1454334065.32-270842437256163/napalm_install_config\", line 163, in main\r\n    diff = device.compare_config().encode('utf-8')\r\nAttributeError: 'NoneType' object has no attribute 'encode'\r\n\r\n\r\nFATAL: all hosts have already failed -- aborting\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/napalm-automation/napalm-ansible/issues/comments/188793750","html_url":"https://github.com/napalm-automation/napalm-ansible/issues/6#issuecomment-188793750","issue_url":"https://api.github.com/repos/napalm-automation/napalm-ansible/issues/6","id":188793750,"user":{"login":"fooelisa","id":7875777,"avatar_url":"https://avatars.githubusercontent.com/u/7875777?v=3","gravatar_id":"","url":"https://api.github.com/users/fooelisa","html_url":"https://github.com/fooelisa","followers_url":"https://api.github.com/users/fooelisa/followers","following_url":"https://api.github.com/users/fooelisa/following{/other_user}","gists_url":"https://api.github.com/users/fooelisa/gists{/gist_id}","starred_url":"https://api.github.com/users/fooelisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fooelisa/subscriptions","organizations_url":"https://api.github.com/users/fooelisa/orgs","repos_url":"https://api.github.com/users/fooelisa/repos","events_url":"https://api.github.com/users/fooelisa/events{/privacy}","received_events_url":"https://api.github.com/users/fooelisa/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T13:58:26Z","updated_at":"2016-02-25T13:58:26Z","body":"note: \"cisco-configs\" vs. \"cisco-config\""}}