)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":17444,"name":"Jay.Shen","email":"shenhong09@huawei.com","username":"Jay.Shen"},"change_message_id":"088d852d85b1cecf151e94bc99925822cd79d598","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Unit tests will be included soon. Also, we are working on providing"},{"line_number":24,"context_line":"a CI for this driver. In the absence of it, Tempest results will be"},{"line_number":25,"context_line":"provided. Note that this work will be splitted in multiple patch"},{"line_number":26,"context_line":"sets."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"Meanwhile, this is marked as WIP."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"1a4dcd0f_f6c0cf7e","line":25,"updated":"2015-08-08 15:01:19.000000000","message":"S/splitted/split","commit_id":"f60527782c8c2f82b38c1a9e8206b6e3a9d2398c"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"f7d340daa16c1351abd516d0791b704290066a9e","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Unit tests will be included soon. Also, we are working on providing"},{"line_number":24,"context_line":"a CI for this driver. In the absence of it, Tempest results will be"},{"line_number":25,"context_line":"provided. Note that this work will be splitted in multiple patch"},{"line_number":26,"context_line":"sets."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"Meanwhile, this is marked as WIP."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"fa1b9901_8b7d7db3","line":25,"in_reply_to":"1a4dcd0f_f6c0cf7e","updated":"2015-08-18 14:29:08.000000000","message":"Done","commit_id":"f60527782c8c2f82b38c1a9e8206b6e3a9d2398c"}],"manila/common/constants.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7d18c0272ff1fa49026487d2a52a6387754c7d32","unresolved":false,"context_lines":[{"line_number":70,"context_line":"    (\"icmp\", (-1, -1)),"},{"line_number":71,"context_line":")"},{"line_number":72,"context_line":"WINRM_PORTS \u003d ("},{"line_number":73,"context_line":"    (\"tcp\", (5985, 5985)),"},{"line_number":74,"context_line":"    (\"tcp\", (5986, 5986)),"},{"line_number":75,"context_line":")"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_810e1139","line":73,"updated":"2015-07-09 15:46:24.000000000","message":"Why not one line:\n\n\"\"\"\n\n(\"tcp\", (5985, 5986)),\n\n\"\"\"\n\n?","commit_id":"3d3a482d712257183e57cb05e9966003a278a73c"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"76083ee8031c9357778c6baf1b92b616708be586","unresolved":false,"context_lines":[{"line_number":70,"context_line":"    (\"icmp\", (-1, -1)),"},{"line_number":71,"context_line":")"},{"line_number":72,"context_line":"WINRM_PORTS \u003d ("},{"line_number":73,"context_line":"    (\"tcp\", (5985, 5985)),"},{"line_number":74,"context_line":"    (\"tcp\", (5986, 5986)),"},{"line_number":75,"context_line":")"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_9ffbc8c0","line":73,"in_reply_to":"ba3cc151_810e1139","updated":"2015-07-09 16:06:32.000000000","message":"Right, changing this right now. At first, I forgot that this is specifying the port range, not source/destination.\n\nThanks for pointing this out!","commit_id":"3d3a482d712257183e57cb05e9966003a278a73c"}],"manila/share/drivers/service_instance.py":[{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"41a23e274b2de98a336c9f952d8b888cd5b2e5bd","unresolved":false,"context_lines":[{"line_number":152,"context_line":"    3. delete_service_instance: removes service instance and network"},{"line_number":153,"context_line":"       infrastructure."},{"line_number":154,"context_line":"    \"\"\""},{"line_number":155,"context_line":"    _INSTNACE_CONNECTION_PROTO \u003d \"SSH\""},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"    def get_config_option(self, key):"},{"line_number":158,"context_line":"        \"\"\"Returns value of config option."}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_0698be1a","line":155,"updated":"2015-07-10 00:58:25.000000000","message":"typo","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"a653ede7836df12b1b9c5e2bdd7cdd6e7f2e4acd","unresolved":false,"context_lines":[{"line_number":152,"context_line":"    3. delete_service_instance: removes service instance and network"},{"line_number":153,"context_line":"       infrastructure."},{"line_number":154,"context_line":"    \"\"\""},{"line_number":155,"context_line":"    _INSTNACE_CONNECTION_PROTO \u003d \"SSH\""},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"    def get_config_option(self, key):"},{"line_number":158,"context_line":"        \"\"\"Returns value of config option."}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_9d77343b","line":155,"in_reply_to":"ba3cc151_0698be1a","updated":"2015-07-10 10:00:14.000000000","message":"Done","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7e26f0553b15b4aaa7917ca877f3b4527965a5bd","unresolved":false,"context_lines":[{"line_number":514,"context_line":"            fail_safe_data[\u0027instance_id\u0027] \u003d service_instance[\u0027id\u0027]"},{"line_number":515,"context_line":""},{"line_number":516,"context_line":"            t \u003d time.time()"},{"line_number":517,"context_line":"            while time.time() - t \u003c self.max_time_to_build_instance:"},{"line_number":518,"context_line":"                # NOTE(vponomaryov): emptiness of \u0027networks\u0027 field checked as"},{"line_number":519,"context_line":"                #                    workaround for nova/neutron bug #1210483."},{"line_number":520,"context_line":"                if (service_instance[\u0027status\u0027] \u003d\u003d \u0027ACTIVE\u0027 and"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_3a316aa2","line":517,"updated":"2015-07-09 16:27:04.000000000","message":"Use \"wait_for_instance_to_be_active\"?","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"3320c476ba485c0e10102012f0e1e8952e23dcd9","unresolved":false,"context_lines":[{"line_number":514,"context_line":"            fail_safe_data[\u0027instance_id\u0027] \u003d service_instance[\u0027id\u0027]"},{"line_number":515,"context_line":""},{"line_number":516,"context_line":"            t \u003d time.time()"},{"line_number":517,"context_line":"            while time.time() - t \u003c self.max_time_to_build_instance:"},{"line_number":518,"context_line":"                # NOTE(vponomaryov): emptiness of \u0027networks\u0027 field checked as"},{"line_number":519,"context_line":"                #                    workaround for nova/neutron bug #1210483."},{"line_number":520,"context_line":"                if (service_instance[\u0027status\u0027] \u003d\u003d \u0027ACTIVE\u0027 and"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_159d57bb","line":517,"in_reply_to":"ba3cc151_3a316aa2","updated":"2015-07-09 16:35:00.000000000","message":"Sure. In that case, I\u0027ll move the network check as well.","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7e26f0553b15b4aaa7917ca877f3b4527965a5bd","unresolved":false,"context_lines":[{"line_number":612,"context_line":"        self._delete_server(context, instance_id)"},{"line_number":613,"context_line":"        self.network_helper.teardown_network(server_details)"},{"line_number":614,"context_line":""},{"line_number":615,"context_line":"    def wait_for_instance_to_be_active(self, instance_id, timeout):"},{"line_number":616,"context_line":"        t \u003d time.time()"},{"line_number":617,"context_line":"        while time.time() - t \u003c timeout:"},{"line_number":618,"context_line":"            service_instance \u003d self.compute_api.server_get(self.admin_context,"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_da239e56","line":615,"updated":"2015-07-09 16:27:04.000000000","message":"See lines 518-522.","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"}],"manila/share/drivers/windows/service_instance.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"70a517432ba71ac2c093ccca7ae691fa647c8a65","unresolved":false,"context_lines":[{"line_number":30,"context_line":"CONF \u003d cfg.CONF"},{"line_number":31,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"windows_share_server_opts \u003d ["},{"line_number":34,"context_line":"    cfg.StrOpt("},{"line_number":35,"context_line":"        \"cert_pem_path\","},{"line_number":36,"context_line":"        default\u003d\"~/.ssl/cert.pem\","}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_f5dd5341","line":33,"updated":"2015-07-09 16:38:23.000000000","message":"These opts should be added to \"manila/opts.py\"","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"9f2e82a6c034a71dfa87a21cb23fb92134f219df","unresolved":false,"context_lines":[{"line_number":30,"context_line":"CONF \u003d cfg.CONF"},{"line_number":31,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"windows_share_server_opts \u003d ["},{"line_number":34,"context_line":"    cfg.StrOpt("},{"line_number":35,"context_line":"        \"cert_pem_path\","},{"line_number":36,"context_line":"        default\u003d\"~/.ssl/cert.pem\","}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_f5ab1386","line":33,"in_reply_to":"ba3cc151_f5dd5341","updated":"2015-07-09 16:51:07.000000000","message":"Done","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"41a23e274b2de98a336c9f952d8b888cd5b2e5bd","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            if not (os.path.exists(self._cert_pem_path) and"},{"line_number":78,"context_line":"                    os.path.exists(self._cert_key_pem_path)):"},{"line_number":79,"context_line":"                msg \u003d _(\"Certificate based authentication was \""},{"line_number":80,"context_line":"                        \"configured one or more certificate is missing.\")"},{"line_number":81,"context_line":"                raise exception.ServiceInstanceException(msg)"},{"line_number":82,"context_line":"            LOG.debug(\"Using certificate based authenticaton for \""},{"line_number":83,"context_line":"                      \"service instances.\")"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_2604e216","line":80,"updated":"2015-07-10 00:58:25.000000000","message":"This is a run-on sentence.\n\n\"Certificate-based authentication was configured, and one or more certificates are missing.\"","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"a653ede7836df12b1b9c5e2bdd7cdd6e7f2e4acd","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            if not (os.path.exists(self._cert_pem_path) and"},{"line_number":78,"context_line":"                    os.path.exists(self._cert_key_pem_path)):"},{"line_number":79,"context_line":"                msg \u003d _(\"Certificate based authentication was \""},{"line_number":80,"context_line":"                        \"configured one or more certificate is missing.\")"},{"line_number":81,"context_line":"                raise exception.ServiceInstanceException(msg)"},{"line_number":82,"context_line":"            LOG.debug(\"Using certificate based authenticaton for \""},{"line_number":83,"context_line":"                      \"service instances.\")"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_9dc5f43e","line":80,"in_reply_to":"ba3cc151_2604e216","updated":"2015-07-10 10:00:14.000000000","message":"Done","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"41a23e274b2de98a336c9f952d8b888cd5b2e5bd","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                msg \u003d _(\"Certificate based authentication was \""},{"line_number":80,"context_line":"                        \"configured one or more certificate is missing.\")"},{"line_number":81,"context_line":"                raise exception.ServiceInstanceException(msg)"},{"line_number":82,"context_line":"            LOG.debug(\"Using certificate based authenticaton for \""},{"line_number":83,"context_line":"                      \"service instances.\")"},{"line_number":84,"context_line":"        else:"},{"line_number":85,"context_line":"            instance_password \u003d self.get_config_option("}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_291b5575","line":82,"updated":"2015-07-10 00:58:25.000000000","message":"typo: authentication","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"a653ede7836df12b1b9c5e2bdd7cdd6e7f2e4acd","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                msg \u003d _(\"Certificate based authentication was \""},{"line_number":80,"context_line":"                        \"configured one or more certificate is missing.\")"},{"line_number":81,"context_line":"                raise exception.ServiceInstanceException(msg)"},{"line_number":82,"context_line":"            LOG.debug(\"Using certificate based authenticaton for \""},{"line_number":83,"context_line":"                      \"service instances.\")"},{"line_number":84,"context_line":"        else:"},{"line_number":85,"context_line":"            instance_password \u003d self.get_config_option("}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_5dbf6caa","line":82,"in_reply_to":"ba3cc151_291b5575","updated":"2015-07-10 10:00:14.000000000","message":"Done","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"41a23e274b2de98a336c9f952d8b888cd5b2e5bd","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def _get_auth_info(self):"},{"line_number":97,"context_line":"        auth_info \u003d {"},{"line_number":98,"context_line":"            \u0027use_cert_auth\u0027: self._use_cert_auth,"},{"line_number":99,"context_line":"        }"},{"line_number":100,"context_line":"        if self._use_cert_auth:"},{"line_number":101,"context_line":"            auth_info.update(cert_pem_path\u003dself._cert_pem_path,"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_29491561","line":98,"updated":"2015-07-10 00:58:25.000000000","message":"Please don\u0027t wrap a dictionary that fits on one line.\n\nhttp://docs.openstack.org/developer/hacking/","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"a653ede7836df12b1b9c5e2bdd7cdd6e7f2e4acd","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def _get_auth_info(self):"},{"line_number":97,"context_line":"        auth_info \u003d {"},{"line_number":98,"context_line":"            \u0027use_cert_auth\u0027: self._use_cert_auth,"},{"line_number":99,"context_line":"        }"},{"line_number":100,"context_line":"        if self._use_cert_auth:"},{"line_number":101,"context_line":"            auth_info.update(cert_pem_path\u003dself._cert_pem_path,"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_dd005c69","line":98,"in_reply_to":"ba3cc151_29491561","updated":"2015-07-10 10:00:14.000000000","message":"Done","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a280c28aec2f788e12399f0cca1778cc53bdf520","unresolved":false,"context_lines":[{"line_number":237,"context_line":"                    server, path\u003dcbs_init_section)"},{"line_number":238,"context_line":"                return cbs_init_section"},{"line_number":239,"context_line":"            except processutils.ProcessExecutionError as ex:"},{"line_number":240,"context_line":"                if \u0027Cannot find path\u0027 in ex.stderr:"},{"line_number":241,"context_line":"                    continue"},{"line_number":242,"context_line":"                else:"},{"line_number":243,"context_line":"                    raise"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_95fac773","line":240,"updated":"2015-07-09 16:42:19.000000000","message":"Is there possibility to get know type of error by some other means instead of search for match of substring?","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"a653ede7836df12b1b9c5e2bdd7cdd6e7f2e4acd","unresolved":false,"context_lines":[{"line_number":237,"context_line":"                    server, path\u003dcbs_init_section)"},{"line_number":238,"context_line":"                return cbs_init_section"},{"line_number":239,"context_line":"            except processutils.ProcessExecutionError as ex:"},{"line_number":240,"context_line":"                if \u0027Cannot find path\u0027 in ex.stderr:"},{"line_number":241,"context_line":"                    continue"},{"line_number":242,"context_line":"                else:"},{"line_number":243,"context_line":"                    raise"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_d5bfccfa","line":240,"in_reply_to":"ba3cc151_95fac773","updated":"2015-07-10 10:00:14.000000000","message":"Unfortunately, the exit code will always be \u00271\u0027 in case of errors, so this cannot be used in order to determine the error type. Perhaps I should mention this as an inline comment.","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ec3299e6a2ec6d20f34f01609b73969fc6a73599","unresolved":false,"context_lines":[{"line_number":115,"context_line":"    def _check_password_complexity(self, password):"},{"line_number":116,"context_line":"        # Make sure that the Windows complexity requirements are met:"},{"line_number":117,"context_line":"        # http://technet.microsoft.com/en-us/library/cc786468(v\u003dws.10).aspx"},{"line_number":118,"context_line":"        for r in [\"[a-z]\", \"[A-Z]\", \"[0-9]\"]:"},{"line_number":119,"context_line":"            if not re.search(r, password):"},{"line_number":120,"context_line":"                return False"},{"line_number":121,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_96a3a7ff","line":118,"updated":"2015-08-07 16:09:02.000000000","message":"Better to use tuple for such cases. It is approximately ten times faster.","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"f517640b95b81765706c02c853e16cdaddf9ef56","unresolved":false,"context_lines":[{"line_number":115,"context_line":"    def _check_password_complexity(self, password):"},{"line_number":116,"context_line":"        # Make sure that the Windows complexity requirements are met:"},{"line_number":117,"context_line":"        # http://technet.microsoft.com/en-us/library/cc786468(v\u003dws.10).aspx"},{"line_number":118,"context_line":"        for r in [\"[a-z]\", \"[A-Z]\", \"[0-9]\"]:"},{"line_number":119,"context_line":"            if not re.search(r, password):"},{"line_number":120,"context_line":"                return False"},{"line_number":121,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_567affbd","line":118,"in_reply_to":"1a4dcd0f_96a3a7ff","updated":"2015-08-07 16:22:20.000000000","message":"Done","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ec3299e6a2ec6d20f34f01609b73969fc6a73599","unresolved":false,"context_lines":[{"line_number":123,"context_line":"    def _test_server_connection(self, server):"},{"line_number":124,"context_line":"        try:"},{"line_number":125,"context_line":"            self._remote_execute(server, \"whoami\", retry\u003dFalse)"},{"line_number":126,"context_line":"            LOG.debug(\"Service VM is available via WinRM\")"},{"line_number":127,"context_line":"            return True"},{"line_number":128,"context_line":"        except Exception as ex:"},{"line_number":129,"context_line":"            LOG.debug(\"Server %s is not available via WinRM. Exception: %s \","}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_967ac775","line":126,"updated":"2015-08-07 16:09:02.000000000","message":"Please, add either ID or IP of a VM.","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"f517640b95b81765706c02c853e16cdaddf9ef56","unresolved":false,"context_lines":[{"line_number":123,"context_line":"    def _test_server_connection(self, server):"},{"line_number":124,"context_line":"        try:"},{"line_number":125,"context_line":"            self._remote_execute(server, \"whoami\", retry\u003dFalse)"},{"line_number":126,"context_line":"            LOG.debug(\"Service VM is available via WinRM\")"},{"line_number":127,"context_line":"            return True"},{"line_number":128,"context_line":"        except Exception as ex:"},{"line_number":129,"context_line":"            LOG.debug(\"Server %s is not available via WinRM. Exception: %s \","}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_367bb3bf","line":126,"in_reply_to":"1a4dcd0f_967ac775","updated":"2015-08-07 16:22:20.000000000","message":"Done","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ec3299e6a2ec6d20f34f01609b73969fc6a73599","unresolved":false,"context_lines":[{"line_number":127,"context_line":"            return True"},{"line_number":128,"context_line":"        except Exception as ex:"},{"line_number":129,"context_line":"            LOG.debug(\"Server %s is not available via WinRM. Exception: %s \","},{"line_number":130,"context_line":"                      server[\u0027ip\u0027], ex)"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    def _get_service_instance_create_kwargs(self):"},{"line_number":133,"context_line":"        create_kwargs \u003d {}"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_963f2786","line":130,"updated":"2015-08-07 16:09:02.000000000","message":"This approach of substitution is not compatible with one on line 196.","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"f517640b95b81765706c02c853e16cdaddf9ef56","unresolved":false,"context_lines":[{"line_number":127,"context_line":"            return True"},{"line_number":128,"context_line":"        except Exception as ex:"},{"line_number":129,"context_line":"            LOG.debug(\"Server %s is not available via WinRM. Exception: %s \","},{"line_number":130,"context_line":"                      server[\u0027ip\u0027], ex)"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    def _get_service_instance_create_kwargs(self):"},{"line_number":133,"context_line":"        create_kwargs \u003d {}"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_f1a6b5bf","line":130,"in_reply_to":"1a4dcd0f_963f2786","updated":"2015-08-07 16:22:20.000000000","message":"Sure, I can use named arguments.","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ec3299e6a2ec6d20f34f01609b73969fc6a73599","unresolved":false,"context_lines":[{"line_number":187,"context_line":"        try:"},{"line_number":188,"context_line":"            self._windows_utils.join_domain(server, domain, admin_username,"},{"line_number":189,"context_line":"                                            admin_password)"},{"line_number":190,"context_line":"        except processutils.ProcessExecutionError:"},{"line_number":191,"context_line":"            raise"},{"line_number":192,"context_line":"        except Exception as exc:"},{"line_number":193,"context_line":"            LOG.debug(\"Unexpected error while attempting to join domain \""}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_96c887a9","line":190,"updated":"2015-08-07 16:09:02.000000000","message":"Why do you need this \"except\" when you immediately raises it again without additional actions?","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"f517640b95b81765706c02c853e16cdaddf9ef56","unresolved":false,"context_lines":[{"line_number":187,"context_line":"        try:"},{"line_number":188,"context_line":"            self._windows_utils.join_domain(server, domain, admin_username,"},{"line_number":189,"context_line":"                                            admin_password)"},{"line_number":190,"context_line":"        except processutils.ProcessExecutionError:"},{"line_number":191,"context_line":"            raise"},{"line_number":192,"context_line":"        except Exception as exc:"},{"line_number":193,"context_line":"            LOG.debug(\"Unexpected error while attempting to join domain \""}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_d16059a7","line":190,"in_reply_to":"1a4dcd0f_96c887a9","updated":"2015-08-07 16:22:20.000000000","message":"The reason is that I wanted this to fail only in case ProccessExecutionError is raised, passing otherwise.\n\nAs stated in the inline comments, joining the domain will alter the WinRM configuration and possibly existing connections, which can raise various exceptions.\n\nBasically, we can tell that this went wrong if ProcessExecutionError is raised or the server domain after reboot does not match the desired AD domain.","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ec3299e6a2ec6d20f34f01609b73969fc6a73599","unresolved":false,"context_lines":[{"line_number":220,"context_line":"            LOG.info(_LI(\"No security services provided.\"))"},{"line_number":221,"context_line":"        elif len(security_services) \u003e 1:"},{"line_number":222,"context_line":"            LOG.warn(_LW(\"Multiple security services provided. \""},{"line_number":223,"context_line":"                         \"Only one security service is supported.\"))"},{"line_number":224,"context_line":"        else:"},{"line_number":225,"context_line":"            security_service \u003d security_services[0]"},{"line_number":226,"context_line":"            security_service_type \u003d security_service[\u0027type\u0027]"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_366653bb","line":223,"updated":"2015-08-07 16:09:02.000000000","message":"Which one? - Need to specify which exactly.","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"f517640b95b81765706c02c853e16cdaddf9ef56","unresolved":false,"context_lines":[{"line_number":220,"context_line":"            LOG.info(_LI(\"No security services provided.\"))"},{"line_number":221,"context_line":"        elif len(security_services) \u003e 1:"},{"line_number":222,"context_line":"            LOG.warn(_LW(\"Multiple security services provided. \""},{"line_number":223,"context_line":"                         \"Only one security service is supported.\"))"},{"line_number":224,"context_line":"        else:"},{"line_number":225,"context_line":"            security_service \u003d security_services[0]"},{"line_number":226,"context_line":"            security_service_type \u003d security_service[\u0027type\u0027]"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_31665dbb","line":223,"in_reply_to":"1a4dcd0f_366653bb","updated":"2015-08-07 16:22:20.000000000","message":"Done","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ec3299e6a2ec6d20f34f01609b73969fc6a73599","unresolved":false,"context_lines":[{"line_number":246,"context_line":"    def _get_cbs_init_reg_section(self, server):"},{"line_number":247,"context_line":"        base_path \u003d \u0027hklm:\\\\SOFTWARE\u0027"},{"line_number":248,"context_line":"        cbs_section \u003d \u0027Cloudbase Solutions\\\\Cloudbase-Init\u0027"},{"line_number":249,"context_line":"        upper_sections \u003d [\u0027\u0027, \u0027Wow6432Node\u0027]"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"        for upper_section in upper_sections:"},{"line_number":252,"context_line":"            cbs_init_section \u003d self._windows_utils.normalize_path("}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_f631cba2","line":249,"updated":"2015-08-07 16:09:02.000000000","message":"Why do you need to define it separately if it is short and used once if \"for\" block?","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"f517640b95b81765706c02c853e16cdaddf9ef56","unresolved":false,"context_lines":[{"line_number":246,"context_line":"    def _get_cbs_init_reg_section(self, server):"},{"line_number":247,"context_line":"        base_path \u003d \u0027hklm:\\\\SOFTWARE\u0027"},{"line_number":248,"context_line":"        cbs_section \u003d \u0027Cloudbase Solutions\\\\Cloudbase-Init\u0027"},{"line_number":249,"context_line":"        upper_sections \u003d [\u0027\u0027, \u0027Wow6432Node\u0027]"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"        for upper_section in upper_sections:"},{"line_number":252,"context_line":"            cbs_init_section \u003d self._windows_utils.normalize_path("}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_11f001c8","line":249,"in_reply_to":"1a4dcd0f_f631cba2","updated":"2015-08-07 16:22:20.000000000","message":"I will change this. It seemed to me a little easier to read.","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"9e21fcee8f7532551d09b963e68e4f97c3e2dd0b","unresolved":false,"context_lines":[{"line_number":251,"context_line":"        base_path \u003d \u0027hklm:\\\\SOFTWARE\u0027"},{"line_number":252,"context_line":"        cbs_section \u003d \u0027Cloudbase Solutions\\\\Cloudbase-Init\u0027"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"        for upper_section in [\u0027\u0027, \u0027Wow6432Node\u0027]:"},{"line_number":255,"context_line":"            cbs_init_section \u003d self._windows_utils.normalize_path("},{"line_number":256,"context_line":"                os.path.join(base_path, upper_section, cbs_section))"},{"line_number":257,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_da7f0465","line":254,"updated":"2015-08-07 21:26:53.000000000","message":"tuple here?","commit_id":"f60527782c8c2f82b38c1a9e8206b6e3a9d2398c"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"1a045f062678ad6571ff155d5468ccab40188b32","unresolved":false,"context_lines":[{"line_number":251,"context_line":"        base_path \u003d \u0027hklm:\\\\SOFTWARE\u0027"},{"line_number":252,"context_line":"        cbs_section \u003d \u0027Cloudbase Solutions\\\\Cloudbase-Init\u0027"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"        for upper_section in [\u0027\u0027, \u0027Wow6432Node\u0027]:"},{"line_number":255,"context_line":"            cbs_init_section \u003d self._windows_utils.normalize_path("},{"line_number":256,"context_line":"                os.path.join(base_path, upper_section, cbs_section))"},{"line_number":257,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_182574ad","line":254,"in_reply_to":"1a4dcd0f_da7f0465","updated":"2015-08-07 22:26:49.000000000","message":"Sure, I\u0027ll change this in the following patch set, when I\u0027ll also add all the required unit tests.","commit_id":"f60527782c8c2f82b38c1a9e8206b6e3a9d2398c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"02ab668c55cb15731e18a364584b09207250d016","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from oslo_log import log"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"from manila import exception"},{"line_number":24,"context_line":"from manila.i18n import _, _LI, _LW"},{"line_number":25,"context_line":"from manila.share.drivers import service_instance"},{"line_number":26,"context_line":"from manila.share.drivers.windows import windows_utils"},{"line_number":27,"context_line":"from manila.share.drivers.windows import winrm_helper"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa1b9901_f8b25148","line":24,"updated":"2015-08-26 15:08:50.000000000","message":"http://docs.openstack.org/developer/hacking/#imports","commit_id":"21d31dac86566e750dab1854326b5f95383b8605"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"91725a8724f7168262b20498b8d3dea2841c2909","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from oslo_log import log"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"from manila import exception"},{"line_number":24,"context_line":"from manila.i18n import _, _LI, _LW"},{"line_number":25,"context_line":"from manila.share.drivers import service_instance"},{"line_number":26,"context_line":"from manila.share.drivers.windows import windows_utils"},{"line_number":27,"context_line":"from manila.share.drivers.windows import winrm_helper"}],"source_content_type":"text/x-python","patch_set":21,"id":"da20952f_1faa4b1a","line":24,"in_reply_to":"fa1b9901_f8b25148","updated":"2015-08-26 16:30:42.000000000","message":"Do you mean the multiple imports per line? Citing from the same page:\n\n\"(*) exceptions are:\n...\nimports from oslo-incubator.openstack.common.gettextutils module\"\n\nFor this reason, there is an import exception rule defined here:\nhttps://github.com/openstack/manila/blob/master/tox.ini#L65","commit_id":"21d31dac86566e750dab1854326b5f95383b8605"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"02ab668c55cb15731e18a364584b09207250d016","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"windows_share_server_opts \u003d ["},{"line_number":34,"context_line":"    cfg.StrOpt("},{"line_number":35,"context_line":"        \"cert_pem_path\","},{"line_number":36,"context_line":"        default\u003d\"~/.ssl/cert.pem\","},{"line_number":37,"context_line":"        help\u003d\"Path to the x509 certificate used for accessing the service\""},{"line_number":38,"context_line":"             \"instance.\"),"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa1b9901_b8ee1920","line":35,"updated":"2015-08-26 15:08:50.000000000","message":"Should have \"winrm\" prefix. Same for below opts.","commit_id":"21d31dac86566e750dab1854326b5f95383b8605"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"91725a8724f7168262b20498b8d3dea2841c2909","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"windows_share_server_opts \u003d ["},{"line_number":34,"context_line":"    cfg.StrOpt("},{"line_number":35,"context_line":"        \"cert_pem_path\","},{"line_number":36,"context_line":"        default\u003d\"~/.ssl/cert.pem\","},{"line_number":37,"context_line":"        help\u003d\"Path to the x509 certificate used for accessing the service\""},{"line_number":38,"context_line":"             \"instance.\"),"}],"source_content_type":"text/x-python","patch_set":21,"id":"da20952f_7fc7c745","line":35,"in_reply_to":"fa1b9901_b8ee1920","updated":"2015-08-26 16:30:42.000000000","message":"Sure, I\u0027ll change this in the following patch set.","commit_id":"21d31dac86566e750dab1854326b5f95383b8605"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"8f092e941b7b92e6393fb6219bb808fc1d0378d5","unresolved":false,"context_lines":[{"line_number":93,"context_line":"                msg \u003d _(\"The configured service instance password does not \""},{"line_number":94,"context_line":"                        \"match the minimum complexity requirements. \""},{"line_number":95,"context_line":"                        \"The password must contain at least one digit, \""},{"line_number":96,"context_line":"                        \"one lower case and one upper case character.\")"},{"line_number":97,"context_line":"                raise exception.ServiceInstanceException(msg)"},{"line_number":98,"context_line":"            LOG.debug(\"Using password based authentication for \""},{"line_number":99,"context_line":"                      \"service instances.\")"}],"source_content_type":"text/x-python","patch_set":25,"id":"da20952f_426a76ef","line":96,"updated":"2015-08-31 08:17:27.000000000","message":"You should also mention that the password lenght must be \u003e\u003d _DEFAULT_MINIMUM_PASS_LENGTH","commit_id":"3f2c8496a98ca5a0cb3f4fee90f6e2d4679d64b8"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"fd6cbd3c7178f2f656476ddf14ccdeebd960d56c","unresolved":false,"context_lines":[{"line_number":93,"context_line":"                msg \u003d _(\"The configured service instance password does not \""},{"line_number":94,"context_line":"                        \"match the minimum complexity requirements. \""},{"line_number":95,"context_line":"                        \"The password must contain at least one digit, \""},{"line_number":96,"context_line":"                        \"one lower case and one upper case character.\")"},{"line_number":97,"context_line":"                raise exception.ServiceInstanceException(msg)"},{"line_number":98,"context_line":"            LOG.debug(\"Using password based authentication for \""},{"line_number":99,"context_line":"                      \"service instances.\")"}],"source_content_type":"text/x-python","patch_set":25,"id":"da20952f_68c67969","line":96,"in_reply_to":"da20952f_426a76ef","updated":"2015-08-31 08:27:28.000000000","message":"Done","commit_id":"3f2c8496a98ca5a0cb3f4fee90f6e2d4679d64b8"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"8f092e941b7b92e6393fb6219bb808fc1d0378d5","unresolved":false,"context_lines":[{"line_number":184,"context_line":"        # Joining an AD domain will alter the WinRM Listener configuration."},{"line_number":185,"context_line":"        # Cloudbase-init is required to be running on the Windows service"},{"line_number":186,"context_line":"        # instance, so we re-enable the plugin configuring the WinRM listener."},{"line_number":187,"context_line":"        # In the future, a config option could be added for this, in which case"},{"line_number":188,"context_line":"        # we could rely on the AD group policies taking care of the WinRM"},{"line_number":189,"context_line":"        # configuration."},{"line_number":190,"context_line":"        self._run_cloudbase_init_plugin_after_reboot("}],"source_content_type":"text/x-python","patch_set":25,"id":"da20952f_cd123757","line":187,"updated":"2015-08-31 08:17:27.000000000","message":"nit: Can you add a TODO in front of the \"In the future..\"?","commit_id":"3f2c8496a98ca5a0cb3f4fee90f6e2d4679d64b8"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"fd6cbd3c7178f2f656476ddf14ccdeebd960d56c","unresolved":false,"context_lines":[{"line_number":184,"context_line":"        # Joining an AD domain will alter the WinRM Listener configuration."},{"line_number":185,"context_line":"        # Cloudbase-init is required to be running on the Windows service"},{"line_number":186,"context_line":"        # instance, so we re-enable the plugin configuring the WinRM listener."},{"line_number":187,"context_line":"        # In the future, a config option could be added for this, in which case"},{"line_number":188,"context_line":"        # we could rely on the AD group policies taking care of the WinRM"},{"line_number":189,"context_line":"        # configuration."},{"line_number":190,"context_line":"        self._run_cloudbase_init_plugin_after_reboot("}],"source_content_type":"text/x-python","patch_set":25,"id":"da20952f_48a8558d","line":187,"in_reply_to":"da20952f_cd123757","updated":"2015-08-31 08:27:28.000000000","message":"Done","commit_id":"3f2c8496a98ca5a0cb3f4fee90f6e2d4679d64b8"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"8f092e941b7b92e6393fb6219bb808fc1d0378d5","unresolved":false,"context_lines":[{"line_number":231,"context_line":"    def get_valid_security_service(self, security_services):"},{"line_number":232,"context_line":"        if not security_services:"},{"line_number":233,"context_line":"            LOG.info(_LI(\"No security services provided.\"))"},{"line_number":234,"context_line":"        elif len(security_services) \u003e 1:"},{"line_number":235,"context_line":"            LOG.warn(_LW(\"Multiple security services provided. Only one \""},{"line_number":236,"context_line":"                         \"security service of type \u0027active_directory\u0027 \""},{"line_number":237,"context_line":"                         \"is supported.\"))"}],"source_content_type":"text/x-python","patch_set":25,"id":"da20952f_cd955787","line":234,"updated":"2015-08-31 08:17:27.000000000","message":"I\u0027m not sure if that can happen, but isn\u0027t it ok to provide multiple security services if just *one* is of type \u0027active_directory\u0027 ? So maybe filter the given security_services by type and do the length check afterwards.","commit_id":"3f2c8496a98ca5a0cb3f4fee90f6e2d4679d64b8"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"fd6cbd3c7178f2f656476ddf14ccdeebd960d56c","unresolved":false,"context_lines":[{"line_number":231,"context_line":"    def get_valid_security_service(self, security_services):"},{"line_number":232,"context_line":"        if not security_services:"},{"line_number":233,"context_line":"            LOG.info(_LI(\"No security services provided.\"))"},{"line_number":234,"context_line":"        elif len(security_services) \u003e 1:"},{"line_number":235,"context_line":"            LOG.warn(_LW(\"Multiple security services provided. Only one \""},{"line_number":236,"context_line":"                         \"security service of type \u0027active_directory\u0027 \""},{"line_number":237,"context_line":"                         \"is supported.\"))"}],"source_content_type":"text/x-python","patch_set":25,"id":"da20952f_e896093d","line":234,"in_reply_to":"da20952f_cd955787","updated":"2015-08-31 08:27:28.000000000","message":"Makes sense. I\u0027ll change this in the following patch set.","commit_id":"3f2c8496a98ca5a0cb3f4fee90f6e2d4679d64b8"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"19ef7ee394a1775600dfb7f88ec91f59c76034a3","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        base_path \u003d \u0027hklm:\\\\SOFTWARE\u0027"},{"line_number":264,"context_line":"        cbs_section \u003d \u0027Cloudbase Solutions\\\\Cloudbase-Init\u0027"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        for upper_section in (\u0027\u0027, \u0027Wow6432Node\u0027):"},{"line_number":267,"context_line":"            cbs_init_section \u003d self._windows_utils.normalize_path("},{"line_number":268,"context_line":"                os.path.join(base_path, upper_section, cbs_section))"},{"line_number":269,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":26,"id":"da20952f_fa756031","line":266,"updated":"2015-08-31 15:07:17.000000000","message":"Please remove the extra blank line.","commit_id":"d9c0bda0b7afa2bf419bd98b819bbb8315e8d530"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"16175b646d71a9077aad9abe3085ef8973761cda","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        base_path \u003d \u0027hklm:\\\\SOFTWARE\u0027"},{"line_number":264,"context_line":"        cbs_section \u003d \u0027Cloudbase Solutions\\\\Cloudbase-Init\u0027"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        for upper_section in (\u0027\u0027, \u0027Wow6432Node\u0027):"},{"line_number":267,"context_line":"            cbs_init_section \u003d self._windows_utils.normalize_path("},{"line_number":268,"context_line":"                os.path.join(base_path, upper_section, cbs_section))"},{"line_number":269,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":26,"id":"da20952f_fd023ab3","line":266,"in_reply_to":"da20952f_fa756031","updated":"2015-08-31 15:10:02.000000000","message":"-1\n\nI see nothing wrong with a little whitespace separating variables from logic.  Improves readability, IMHO.","commit_id":"d9c0bda0b7afa2bf419bd98b819bbb8315e8d530"}],"manila/share/drivers/windows/windows.py":[{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"41a23e274b2de98a336c9f952d8b888cd5b2e5bd","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def _update_share_stats(self, data\u003dNone):"},{"line_number":45,"context_line":"        base_driver.ShareDriver._update_share_stats("},{"line_number":46,"context_line":"            self, data\u003ddict(storage_protocol\u003d\"CIFS\"))"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def _setup_service_instance_manager(self):"},{"line_number":49,"context_line":"        self.service_instance_manager \u003d ("}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_296a7582","line":46,"updated":"2015-07-10 00:58:25.000000000","message":"Are you unable to return capacity data?","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"a653ede7836df12b1b9c5e2bdd7cdd6e7f2e4acd","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def _update_share_stats(self, data\u003dNone):"},{"line_number":45,"context_line":"        base_driver.ShareDriver._update_share_stats("},{"line_number":46,"context_line":"            self, data\u003ddict(storage_protocol\u003d\"CIFS\"))"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def _setup_service_instance_manager(self):"},{"line_number":49,"context_line":"        self.service_instance_manager \u003d ("}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_ccb3cc99","line":46,"in_reply_to":"ba3cc151_296a7582","updated":"2015-07-10 10:00:14.000000000","message":"I\u0027m not sure what capacity data this could return, as the shares are placed on Cinder volumes and the total capacity depends on the cinder quota.","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4550727660d27ee3311b6671def4d8539efc6a29","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def _setup_helpers(self):"},{"line_number":54,"context_line":"        self._helpers[\u0027CIFS\u0027] \u003d self._smb_helper"},{"line_number":55,"context_line":"        self._helpers[\u0027SMB\u0027] \u003d self._helpers[\u0027CIFS\u0027]"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def _teardown_server(self, server_details, security_services\u003dNone):"},{"line_number":58,"context_line":"        security_service \u003d ("}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_954de73f","line":55,"updated":"2015-07-09 16:37:24.000000000","message":"self._helpers \u003d {key: self._smb_helper for key in (\"SMB\", \"CIFS\")}\n\n\nWhy do you need two instances of the same?","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"9f2e82a6c034a71dfa87a21cb23fb92134f219df","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def _setup_helpers(self):"},{"line_number":54,"context_line":"        self._helpers[\u0027CIFS\u0027] \u003d self._smb_helper"},{"line_number":55,"context_line":"        self._helpers[\u0027SMB\u0027] \u003d self._helpers[\u0027CIFS\u0027]"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def _teardown_server(self, server_details, security_services\u003dNone):"},{"line_number":58,"context_line":"        security_service \u003d ("}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_55a8bf1f","line":55,"in_reply_to":"ba3cc151_954de73f","updated":"2015-07-09 16:51:07.000000000","message":"That\u0027s basically the same thing but sure, I can use this notation.","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ec3299e6a2ec6d20f34f01609b73969fc6a73599","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        disk_number \u003d self._windows_utils.get_disk_number_by_serial_number("},{"line_number":142,"context_line":"            server_details, volume[\u0027id\u0027])"},{"line_number":143,"context_line":"        if disk_number is None:"},{"line_number":144,"context_line":"            LOG.debug(\"Could not identify the mounted disk by serial number \""},{"line_number":145,"context_line":"                      \"using the volume id. Attempting to retrieve it by \""},{"line_number":146,"context_line":"                      \"the volume mount point.\")"},{"line_number":147,"context_line":"            # Assumes the mount_point will be something like /dev/hdX"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_d6b84fca","line":144,"updated":"2015-08-07 16:09:02.000000000","message":"Please, add mentioned stuff here - volume ID, etc...","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"f517640b95b81765706c02c853e16cdaddf9ef56","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        disk_number \u003d self._windows_utils.get_disk_number_by_serial_number("},{"line_number":142,"context_line":"            server_details, volume[\u0027id\u0027])"},{"line_number":143,"context_line":"        if disk_number is None:"},{"line_number":144,"context_line":"            LOG.debug(\"Could not identify the mounted disk by serial number \""},{"line_number":145,"context_line":"                      \"using the volume id. Attempting to retrieve it by \""},{"line_number":146,"context_line":"                      \"the volume mount point.\")"},{"line_number":147,"context_line":"            # Assumes the mount_point will be something like /dev/hdX"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_51a689ae","line":144,"in_reply_to":"1a4dcd0f_d6b84fca","updated":"2015-08-07 16:22:20.000000000","message":"Done","commit_id":"21231ad22476f6649989bc4dd7ab7781c779ecc6"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"b68c5309ca8ced674cc7a790d350172914c8b386","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 Cloudbase Solutions SRL"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":23,"id":"da20952f_b860e336","line":1,"updated":"2015-08-27 13:34:59.000000000","message":"It\u0027s better to rename this file to windows_smb_driver.py or windows_driver.py to maintain consistency with other files form this directory.","commit_id":"d3abb152bdadc9dbb2dd704f1229ad74117d0bf0"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"75388cb96073fe5fcae6bdb5061487558ab17729","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 Cloudbase Solutions SRL"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":23,"id":"da20952f_8c404058","line":1,"in_reply_to":"da20952f_b860e336","updated":"2015-08-27 13:52:13.000000000","message":"Sure, makes sense. I\u0027ll rename it in the following patch set.","commit_id":"d3abb152bdadc9dbb2dd704f1229ad74117d0bf0"}],"manila/share/drivers/windows/windows_smb_helper.py":[{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"496016d37073c306e193318f793c6ba608637fcc","unresolved":false,"context_lines":[{"line_number":60,"context_line":"            self._remote_exec(server, cmd)"},{"line_number":61,"context_line":"        else:"},{"line_number":62,"context_line":"            LOG.debug(_LI(\"Skipping removing export %s as \""},{"line_number":63,"context_line":"                          \"it does not exist.\"),"},{"line_number":64,"context_line":"                      share_name)"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def allow_access(self, server, share_name, access_type, access_level,"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_2717e855","line":63,"updated":"2015-08-08 13:04:42.000000000","message":"Don\u0027t have to wrap.","commit_id":"f60527782c8c2f82b38c1a9e8206b6e3a9d2398c"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"f7d340daa16c1351abd516d0791b704290066a9e","unresolved":false,"context_lines":[{"line_number":60,"context_line":"            self._remote_exec(server, cmd)"},{"line_number":61,"context_line":"        else:"},{"line_number":62,"context_line":"            LOG.debug(_LI(\"Skipping removing export %s as \""},{"line_number":63,"context_line":"                          \"it does not exist.\"),"},{"line_number":64,"context_line":"                      share_name)"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def allow_access(self, server, share_name, access_type, access_level,"}],"source_content_type":"text/x-python","patch_set":11,"id":"fa1b9901_56094cdc","line":63,"in_reply_to":"1a4dcd0f_2717e855","updated":"2015-08-18 14:29:08.000000000","message":"Done","commit_id":"f60527782c8c2f82b38c1a9e8206b6e3a9d2398c"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"8f092e941b7b92e6393fb6219bb808fc1d0378d5","unresolved":false,"context_lines":[{"line_number":54,"context_line":"            return \u0027\\\\\\\\%s\\\\%s\u0027 % (server[\u0027public_address\u0027], share_name)"},{"line_number":55,"context_line":"        else:"},{"line_number":56,"context_line":"            LOG.info(_LI(\"Skipping creating export %s as it already exists.\"),"},{"line_number":57,"context_line":"                     share_name)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def remove_export(self, server, share_name):"},{"line_number":60,"context_line":"        if self._share_exists(server, share_name):"}],"source_content_type":"text/x-python","patch_set":25,"id":"da20952f_4ddaa74d","line":57,"updated":"2015-08-31 08:17:27.000000000","message":"You should return the export location here. Then the function has a consistent return value.","commit_id":"3f2c8496a98ca5a0cb3f4fee90f6e2d4679d64b8"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"fd6cbd3c7178f2f656476ddf14ccdeebd960d56c","unresolved":false,"context_lines":[{"line_number":54,"context_line":"            return \u0027\\\\\\\\%s\\\\%s\u0027 % (server[\u0027public_address\u0027], share_name)"},{"line_number":55,"context_line":"        else:"},{"line_number":56,"context_line":"            LOG.info(_LI(\"Skipping creating export %s as it already exists.\"),"},{"line_number":57,"context_line":"                     share_name)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def remove_export(self, server, share_name):"},{"line_number":60,"context_line":"        if self._share_exists(server, share_name):"}],"source_content_type":"text/x-python","patch_set":25,"id":"da20952f_e8b12902","line":57,"in_reply_to":"da20952f_4ddaa74d","updated":"2015-08-31 08:27:28.000000000","message":"Done","commit_id":"3f2c8496a98ca5a0cb3f4fee90f6e2d4679d64b8"}],"manila/share/drivers/windows/windows_utils.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"5f05764cdee92d73cc2858067bed4877d3238574","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self._remote_exec(server, [\u0027\"%s\"\u0027 % cmd])"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def mount_device(self, server, volume, mount_path, partition_number\u003d2):"},{"line_number":54,"context_line":"        # Note(lpetrut): The first partition will be reserved by the OS."},{"line_number":55,"context_line":"        disk_number \u003d self._get_disk_number(volume[\u0027mountpoint\u0027])"},{"line_number":56,"context_line":"        cmd \u003d [\"Add-PartitionAccessPath\", \"-DiskNumber\", disk_number,"},{"line_number":57,"context_line":"               \"-PartitionNumber\", partition_number,"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_b0f6f9d4","line":54,"updated":"2015-07-09 16:56:52.000000000","message":"Please, use uppercase for \"NOTE\" in the same way as you do for \"TODO\".","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"007b95d49ed5f9777a3dde08d0fbf394d488abb4","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self._remote_exec(server, [\u0027\"%s\"\u0027 % cmd])"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def mount_device(self, server, volume, mount_path, partition_number\u003d2):"},{"line_number":54,"context_line":"        # Note(lpetrut): The first partition will be reserved by the OS."},{"line_number":55,"context_line":"        disk_number \u003d self._get_disk_number(volume[\u0027mountpoint\u0027])"},{"line_number":56,"context_line":"        cmd \u003d [\"Add-PartitionAccessPath\", \"-DiskNumber\", disk_number,"},{"line_number":57,"context_line":"               \"-PartitionNumber\", partition_number,"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_96ac0eee","line":54,"in_reply_to":"ba3cc151_b0f6f9d4","updated":"2015-07-09 17:12:25.000000000","message":"Done","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"9ea1843be7ceae4a492b9a502fcc8e5b0423e3bc","unresolved":false,"context_lines":[{"line_number":143,"context_line":"               \"Where-Object {$_.IPAddress -eq \u0027%(ip)s\u0027} | \""},{"line_number":144,"context_line":"               \"Select-Object -ExpandProperty InterfaceIndex\" %"},{"line_number":145,"context_line":"               dict(ip\u003dip))"},{"line_number":146,"context_line":"        cmd \u003d [\u0027\"%s\"\u0027 % cmd]"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"        (out, err) \u003d self._remote_exec(server, cmd)"},{"line_number":149,"context_line":"        if_index \u003d int(out)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_30942935","line":146,"updated":"2015-07-09 16:58:54.000000000","message":"Could be included into previous line.","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"007b95d49ed5f9777a3dde08d0fbf394d488abb4","unresolved":false,"context_lines":[{"line_number":143,"context_line":"               \"Where-Object {$_.IPAddress -eq \u0027%(ip)s\u0027} | \""},{"line_number":144,"context_line":"               \"Select-Object -ExpandProperty InterfaceIndex\" %"},{"line_number":145,"context_line":"               dict(ip\u003dip))"},{"line_number":146,"context_line":"        cmd \u003d [\u0027\"%s\"\u0027 % cmd]"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"        (out, err) \u003d self._remote_exec(server, cmd)"},{"line_number":149,"context_line":"        if_index \u003d int(out)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_76986ac0","line":146,"in_reply_to":"ba3cc151_30942935","updated":"2015-07-09 17:12:25.000000000","message":"Done","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"496016d37073c306e193318f793c6ba608637fcc","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        self._remote_exec(server, cmd)"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    def join_domain(self, server, domain, admin_username, admin_password):"},{"line_number":113,"context_line":"        # NOTE(lpetrut): an instance reboot is needed but this will be"},{"line_number":114,"context_line":"        # performed using Nova so that the instance state can be"},{"line_number":115,"context_line":"        # retrieved easier."},{"line_number":116,"context_line":"        LOG.info(_LI(\"Joining server %(ip)s to Active Directory \""}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_624abe57","line":113,"updated":"2015-08-08 13:04:42.000000000","message":"s/an/An","commit_id":"f60527782c8c2f82b38c1a9e8206b6e3a9d2398c"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"f7d340daa16c1351abd516d0791b704290066a9e","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        self._remote_exec(server, cmd)"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    def join_domain(self, server, domain, admin_username, admin_password):"},{"line_number":113,"context_line":"        # NOTE(lpetrut): an instance reboot is needed but this will be"},{"line_number":114,"context_line":"        # performed using Nova so that the instance state can be"},{"line_number":115,"context_line":"        # retrieved easier."},{"line_number":116,"context_line":"        LOG.info(_LI(\"Joining server %(ip)s to Active Directory \""}],"source_content_type":"text/x-python","patch_set":11,"id":"fa1b9901_761b301c","line":113,"in_reply_to":"1a4dcd0f_624abe57","updated":"2015-08-18 14:29:08.000000000","message":"Done","commit_id":"f60527782c8c2f82b38c1a9e8206b6e3a9d2398c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4ed08e08a6113ea539c0722a1569a8558b76faae","unresolved":false,"context_lines":[{"line_number":178,"context_line":"                if force:"},{"line_number":179,"context_line":"                    cmd +\u003d [\u0027-Force\u0027]"},{"line_number":180,"context_line":"                if recurse:"},{"line_number":181,"context_line":"                    cmd +\u003d [\u0027-Recurse\u0027]"},{"line_number":182,"context_line":"            self._remote_exec(server, cmd)"},{"line_number":183,"context_line":"        else:"},{"line_number":184,"context_line":"            LOG.debug(\"Skipping deleting path %s as it does \""}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_d4ced182","line":181,"updated":"2015-08-27 09:44:04.000000000","message":"This","commit_id":"58d05a9b868344c562d931b724c553e97a4e19bf"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"caa5ed7d98545305ad6222e67e95e2541dccbe4d","unresolved":false,"context_lines":[{"line_number":178,"context_line":"                if force:"},{"line_number":179,"context_line":"                    cmd +\u003d [\u0027-Force\u0027]"},{"line_number":180,"context_line":"                if recurse:"},{"line_number":181,"context_line":"                    cmd +\u003d [\u0027-Recurse\u0027]"},{"line_number":182,"context_line":"            self._remote_exec(server, cmd)"},{"line_number":183,"context_line":"        else:"},{"line_number":184,"context_line":"            LOG.debug(\"Skipping deleting path %s as it does \""}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_f7ce7759","line":181,"in_reply_to":"da20952f_d4ced182","updated":"2015-08-27 10:04:13.000000000","message":"I\u0027ll update this in the following patch set. Thanks!","commit_id":"58d05a9b868344c562d931b724c553e97a4e19bf"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4ed08e08a6113ea539c0722a1569a8558b76faae","unresolved":false,"context_lines":[{"line_number":181,"context_line":"                    cmd +\u003d [\u0027-Recurse\u0027]"},{"line_number":182,"context_line":"            self._remote_exec(server, cmd)"},{"line_number":183,"context_line":"        else:"},{"line_number":184,"context_line":"            LOG.debug(\"Skipping deleting path %s as it does \""},{"line_number":185,"context_line":"                      \"not exist.\", path)"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def path_exists(self, server, path):"}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_54a161a8","line":184,"updated":"2015-08-27 09:44:04.000000000","message":"and this are not covered with unit tests.","commit_id":"58d05a9b868344c562d931b724c553e97a4e19bf"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"69977b3de192d7b07f592b5a4bca94c45b6460f5","unresolved":false,"context_lines":[{"line_number":181,"context_line":"                    cmd +\u003d [\u0027-Recurse\u0027]"},{"line_number":182,"context_line":"            self._remote_exec(server, cmd)"},{"line_number":183,"context_line":"        else:"},{"line_number":184,"context_line":"            LOG.debug(\"Skipping deleting path %s as it does \""},{"line_number":185,"context_line":"                      \"not exist.\", path)"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def path_exists(self, server, path):"}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_d7db33ec","line":184,"in_reply_to":"da20952f_37114fad","updated":"2015-08-27 10:06:03.000000000","message":"This code is not executed in unit tests. At all. So, \"else\" condition is never reached.","commit_id":"58d05a9b868344c562d931b724c553e97a4e19bf"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"caa5ed7d98545305ad6222e67e95e2541dccbe4d","unresolved":false,"context_lines":[{"line_number":181,"context_line":"                    cmd +\u003d [\u0027-Recurse\u0027]"},{"line_number":182,"context_line":"            self._remote_exec(server, cmd)"},{"line_number":183,"context_line":"        else:"},{"line_number":184,"context_line":"            LOG.debug(\"Skipping deleting path %s as it does \""},{"line_number":185,"context_line":"                      \"not exist.\", path)"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def path_exists(self, server, path):"}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_37114fad","line":184,"in_reply_to":"da20952f_54a161a8","updated":"2015-08-27 10:04:13.000000000","message":"In this case, all we can do is asserting that _remote_exec was not called.","commit_id":"58d05a9b868344c562d931b724c553e97a4e19bf"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"15e83319913ae9fb8d96ab26c55afb89040003b1","unresolved":false,"context_lines":[{"line_number":181,"context_line":"                    cmd +\u003d [\u0027-Recurse\u0027]"},{"line_number":182,"context_line":"            self._remote_exec(server, cmd)"},{"line_number":183,"context_line":"        else:"},{"line_number":184,"context_line":"            LOG.debug(\"Skipping deleting path %s as it does \""},{"line_number":185,"context_line":"                      \"not exist.\", path)"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def path_exists(self, server, path):"}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_8d092898","line":184,"in_reply_to":"da20952f_d7db33ec","updated":"2015-08-27 10:38:43.000000000","message":"Done, I\u0027ve updated the according unit tests in patch set 23.","commit_id":"58d05a9b868344c562d931b724c553e97a4e19bf"}],"manila/share/drivers/windows/winrm_helper.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4550727660d27ee3311b6671def4d8539efc6a29","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import six"},{"line_number":17,"context_line":"import winrm"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from oslo_concurrency import processutils"},{"line_number":21,"context_line":"from oslo_config import cfg"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_fa354244","line":18,"updated":"2015-07-09 16:37:24.000000000","message":"Should be just one line as separation","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"9f2e82a6c034a71dfa87a21cb23fb92134f219df","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import six"},{"line_number":17,"context_line":"import winrm"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from oslo_concurrency import processutils"},{"line_number":21,"context_line":"from oslo_config import cfg"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_95608702","line":18,"in_reply_to":"ba3cc151_fa354244","updated":"2015-07-09 16:51:07.000000000","message":"Done","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4550727660d27ee3311b6671def4d8539efc6a29","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def _parse_command(self, command, powershell):"},{"line_number":59,"context_line":"        if isinstance(command, six.string_types):"},{"line_number":60,"context_line":"            command \u003d [command]"},{"line_number":61,"context_line":"        command \u003d [str(c) for c in command]"},{"line_number":62,"context_line":"        if powershell:"},{"line_number":63,"context_line":"            powershell_preffix \u003d ["},{"line_number":64,"context_line":"                \"powershell.exe\", \"-ExecutionPolicy\", \"RemoteSigned\","}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_3a7e4ae4","line":61,"updated":"2015-07-09 16:37:24.000000000","message":"s/str/six.text_type/","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"9f2e82a6c034a71dfa87a21cb23fb92134f219df","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def _parse_command(self, command, powershell):"},{"line_number":59,"context_line":"        if isinstance(command, six.string_types):"},{"line_number":60,"context_line":"            command \u003d [command]"},{"line_number":61,"context_line":"        command \u003d [str(c) for c in command]"},{"line_number":62,"context_line":"        if powershell:"},{"line_number":63,"context_line":"            powershell_preffix \u003d ["},{"line_number":64,"context_line":"                \"powershell.exe\", \"-ExecutionPolicy\", \"RemoteSigned\","}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_d5412f64","line":61,"in_reply_to":"ba3cc151_3a7e4ae4","updated":"2015-07-09 16:51:07.000000000","message":"Good point, updating it.","commit_id":"7be015da9f1e5b2a0cbc2688941c594b59479ea6"}]}
