{"action":"opened","issue":{"url":"https://api.github.com/repos/rapid7/nexpose-client-python/issues/38","repository_url":"https://api.github.com/repos/rapid7/nexpose-client-python","labels_url":"https://api.github.com/repos/rapid7/nexpose-client-python/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/rapid7/nexpose-client-python/issues/38/comments","events_url":"https://api.github.com/repos/rapid7/nexpose-client-python/issues/38/events","html_url":"https://github.com/rapid7/nexpose-client-python/issues/38","id":264675887,"number":38,"title":"SaveSiteConfiguration doesn't save excluded assets","user":{"login":"derpadoo","id":27816854,"avatar_url":"https://avatars0.githubusercontent.com/u/27816854?v=4","gravatar_id":"","url":"https://api.github.com/users/derpadoo","html_url":"https://github.com/derpadoo","followers_url":"https://api.github.com/users/derpadoo/followers","following_url":"https://api.github.com/users/derpadoo/following{/other_user}","gists_url":"https://api.github.com/users/derpadoo/gists{/gist_id}","starred_url":"https://api.github.com/users/derpadoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derpadoo/subscriptions","organizations_url":"https://api.github.com/users/derpadoo/orgs","repos_url":"https://api.github.com/users/derpadoo/repos","events_url":"https://api.github.com/users/derpadoo/events{/privacy}","received_events_url":"https://api.github.com/users/derpadoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-11T17:44:38Z","updated_at":"2017-10-11T17:44:38Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"SaveSiteConfiguration doesn't save excluded assets\r\n\r\n## Expected Behavior\r\nSpecified assets and asset groups that should not be scanned should be saved.\r\n\r\n## Current Behavior\r\nThe excluded scan asset IPs and groups are not included.\r\n\r\n## Possible Solution\r\nSimilar to the tags not being populated.\r\n\r\n## Steps to Reproduce (for bugs)\r\nPython code that reproduces the issue:\r\n\r\n```python\r\n    # Load configuration for a site based on site ID\r\n    config = session.GetSiteConfiguration(site_id)\r\n\r\n    new_ip_list = []\r\n    for ip in ip_list:\r\n        new_ip_list.append(nexpose.Range(ip, ''))\r\n\r\n    # Assign new IPs to the hosts attribute.\r\n    config.hosts = new_ip_list\r\n\r\n    try:\r\n        session.SaveSiteConfiguration(config)\r\n        print(\"[+] Successfully saved IPs to site: {0} (Site ID: {1})\".format(config.name, config.id))\r\n    except Exception as e:\r\n        print(\"[-] Error saving IPs to site: {0} (Site ID: {1})\".format(config.name, config.id))\r\n        print(\"EXCEPTION: {0}\".format(e))\r\n```\r\n\r\n## Context\r\nNeed to save all details of a site when updating it.\r\n\r\n## Your Environment\r\n* Nexpose-client-python version: nexpose==0.1.4\r\n* Python version: Python 2.7.13\r\n* Operating System and version: Ubuntu 14.04.5 LTS\r\n* Nexpose product version: 6.4.58\r\n"}}
{"actor":{"display_login":"derpadoo"}}