)]}'
{"trove/guestagent/datastore/experimental/postgresql/service/config.py":[{"author":{"_account_id":7850,"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","username":"kevinconway"},"change_message_id":"965aed6512c6922e500b745294c29dfba803f202","unresolved":false,"context_lines":[{"line_number":31,"context_line":"OS \u003d get_os()"},{"line_number":32,"context_line":"PGSQL_CONFIG \u003d \"/etc/postgresql/{version}/main/postgresql.conf\""},{"line_number":33,"context_line":"PGSQL_HBA_CONFIG \u003d \"/etc/postgresql/{version}/main/pg_hba.conf\""},{"line_number":34,"context_line":"\"\"\" Note the redhat conf files are generated by initdb \"\"\""},{"line_number":35,"context_line":"if OS is \u0027redhat\u0027:"},{"line_number":36,"context_line":"    PGSQL_CONFIG \u003d \"/var/lib/pgsql/data/postgresql.conf\""},{"line_number":37,"context_line":"    PGSQL_HBA_CONFIG \u003d \"/var/lib/pgsql/data/pg_hba.conf\""}],"source_content_type":"text/x-python","patch_set":1,"id":"9aa53dc9_302e7b43","line":34,"updated":"2015-04-10 12:58:53.000000000","message":"Using a string literal for documentation only has meaning in Python as the first line of a module, class, or function. In those cases it sets the `__doc__` attribute to the content of the string.\n\nMostly just an FYI. There\u0027s not a major harm in having a string like this other than it\u0027s an expression that has to be evaluated versus a comment that is ignored.","commit_id":"5797d88ba056d9845595a85957e8ff7cf0abfb51"},{"author":{"_account_id":7850,"name":"Kevin Conway","email":"kevinjacobconway@gmail.com","username":"kevinconway"},"change_message_id":"965aed6512c6922e500b745294c29dfba803f202","unresolved":false,"context_lines":[{"line_number":32,"context_line":"PGSQL_CONFIG \u003d \"/etc/postgresql/{version}/main/postgresql.conf\""},{"line_number":33,"context_line":"PGSQL_HBA_CONFIG \u003d \"/etc/postgresql/{version}/main/pg_hba.conf\""},{"line_number":34,"context_line":"\"\"\" Note the redhat conf files are generated by initdb \"\"\""},{"line_number":35,"context_line":"if OS is \u0027redhat\u0027:"},{"line_number":36,"context_line":"    PGSQL_CONFIG \u003d \"/var/lib/pgsql/data/postgresql.conf\""},{"line_number":37,"context_line":"    PGSQL_HBA_CONFIG \u003d \"/var/lib/pgsql/data/pg_hba.conf\""},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9aa53dc9_f0ced32b","line":35,"updated":"2015-04-10 12:58:53.000000000","message":"So long as you are only using the standard CPython runtime, this comparison will work. It is technically incorrect, though.\n\nThe `is` operator compares identity while `\u003d\u003d` compares equality. They each use a different underlying function to perform the comparison. For example:\n\n\u003e\u003e {} \u003d\u003d {}  # True\n\n\u003e\u003e {} is {} # False\n\nIt just so happens that `is` works with primitive values like numbers and strings in CPython if they are written in the Python source code. The same operator would not work for values read from an input source or computed from other values. For example:\n\n\u003e\u003e \u0027redhat\u0027 is \u0027redhat\u0027 # True\n\n\u003e\u003e os \u003d raw_input() # Type in redhat at the prompt.\n\n\u003e\u003e os is \u0027redhat\u0027 # False\n\n\u003e\u003e os \u003d\u003d \u0027redhat\u0027 # True","commit_id":"5797d88ba056d9845595a85957e8ff7cf0abfb51"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"c1ed4ecaba418eb43b09596183df706e41557cd8","unresolved":false,"context_lines":[{"line_number":34,"context_line":"\"\"\" Note the redhat conf files are generated by initdb \"\"\""},{"line_number":35,"context_line":"if OS is \u0027redhat\u0027:"},{"line_number":36,"context_line":"    PGSQL_CONFIG \u003d \"/var/lib/pgsql/data/postgresql.conf\""},{"line_number":37,"context_line":"    PGSQL_HBA_CONFIG \u003d \"/var/lib/pgsql/data/pg_hba.conf\""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class PgSqlConfig(PgSqlProcess):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aa53dc9_1b3953d7","line":37,"updated":"2015-04-10 15:16:24.000000000","message":"Also, per dougshelley66\u0027s comments on #openstack-trove (04-09 18:31:48), the paths are also hardcoded in trove/templates/postgresql/config.template","commit_id":"5797d88ba056d9845595a85957e8ff7cf0abfb51"}]}
