)]}'
{"lib/puppet/provider/pcmk_stonith/default.rb":[{"author":{"_account_id":8297,"name":"Sofer Athlan-Guyot","email":"sathlang@redhat.com","username":"chem"},"change_message_id":"7e8b8c7a9d4d3e14c8864e480e2d7cb1819f7760","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    # If both the stonith resource and the location do not exist, we create them both"},{"line_number":24,"context_line":"    # if a location_rule is specified otherwise only the resource"},{"line_number":25,"context_line":"    if not did_stonith_location_exist and not did_stonith_resource_exist"},{"line_number":26,"context_line":"      pcs(\u0027create\u0027, name, \"#{cmd} --disabled\", @resource[:tries],"},{"line_number":27,"context_line":"          @resource[:try_sleep], @resource[:verify_on_create], @resource[:post_success_sleep])"},{"line_number":28,"context_line":"      stonith_location_rule_create()"}],"source_content_type":"text/x-ruby","patch_set":2,"id":"9f5c4f37_3a0d8037","line":25,"range":{"start_line":25,"start_character":11,"end_line":25,"end_character":37},"updated":"2017-09-21 08:28:28.000000000","message":"No need to make it a variable, you could have it called here","commit_id":"375ff165036d0b529b79876b273cc66566811d62"},{"author":{"_account_id":8297,"name":"Sofer Athlan-Guyot","email":"sathlang@redhat.com","username":"chem"},"change_message_id":"7e8b8c7a9d4d3e14c8864e480e2d7cb1819f7760","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    # If both the stonith resource and the location do not exist, we create them both"},{"line_number":24,"context_line":"    # if a location_rule is specified otherwise only the resource"},{"line_number":25,"context_line":"    if not did_stonith_location_exist and not did_stonith_resource_exist"},{"line_number":26,"context_line":"      pcs(\u0027create\u0027, name, \"#{cmd} --disabled\", @resource[:tries],"},{"line_number":27,"context_line":"          @resource[:try_sleep], @resource[:verify_on_create], @resource[:post_success_sleep])"},{"line_number":28,"context_line":"      stonith_location_rule_create()"}],"source_content_type":"text/x-ruby","patch_set":2,"id":"9f5c4f37_5a083427","line":25,"range":{"start_line":25,"start_character":46,"end_line":25,"end_character":72},"updated":"2017-09-21 08:28:28.000000000","message":"idem.","commit_id":"375ff165036d0b529b79876b273cc66566811d62"},{"author":{"_account_id":20172,"name":"Michele Baldessari","email":"michele@acksyn.org","username":"michele"},"change_message_id":"f113404de5d2b426517030e6da41e19f4199de67","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    # If both the stonith resource and the location do not exist, we create them both"},{"line_number":24,"context_line":"    # if a location_rule is specified otherwise only the resource"},{"line_number":25,"context_line":"    if not did_stonith_location_exist and not did_stonith_resource_exist"},{"line_number":26,"context_line":"      pcs(\u0027create\u0027, name, \"#{cmd} --disabled\", @resource[:tries],"},{"line_number":27,"context_line":"          @resource[:try_sleep], @resource[:verify_on_create], @resource[:post_success_sleep])"},{"line_number":28,"context_line":"      stonith_location_rule_create()"}],"source_content_type":"text/x-ruby","patch_set":2,"id":"9f5c4f37_b54bc3ae","line":25,"range":{"start_line":25,"start_character":46,"end_line":25,"end_character":72},"in_reply_to":"9f5c4f37_5a083427","updated":"2017-09-21 09:09:16.000000000","message":"Right but I use them to print out in the debug statement below and I don\u0027t want to call the function twice as it is expensive","commit_id":"375ff165036d0b529b79876b273cc66566811d62"},{"author":{"_account_id":8297,"name":"Sofer Athlan-Guyot","email":"sathlang@redhat.com","username":"chem"},"change_message_id":"7e8b8c7a9d4d3e14c8864e480e2d7cb1819f7760","unresolved":false,"context_lines":[{"line_number":50,"context_line":"  end"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"  def exists?"},{"line_number":53,"context_line":"    did_stonith_location_exist \u003d stonith_location_exists?"},{"line_number":54,"context_line":"    did_stonith_resource_exist \u003d stonith_resource_exists?"},{"line_number":55,"context_line":"    Puppet.debug(\"Exists: stonith resource exists #{did_stonith_resource_exist} location exists #{did_stonith_location_exist}\")"},{"line_number":56,"context_line":"    if did_stonith_resource_exist and did_stonith_location_exist"},{"line_number":57,"context_line":"      return true"}],"source_content_type":"text/x-ruby","patch_set":2,"id":"9f5c4f37_bafe10ac","line":54,"range":{"start_line":53,"start_character":0,"end_line":54,"end_character":57},"updated":"2017-09-21 08:28:28.000000000","message":"Useless assignment, you can use the function definition in th e conditional.","commit_id":"375ff165036d0b529b79876b273cc66566811d62"},{"author":{"_account_id":20172,"name":"Michele Baldessari","email":"michele@acksyn.org","username":"michele"},"change_message_id":"f113404de5d2b426517030e6da41e19f4199de67","unresolved":false,"context_lines":[{"line_number":50,"context_line":"  end"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"  def exists?"},{"line_number":53,"context_line":"    did_stonith_location_exist \u003d stonith_location_exists?"},{"line_number":54,"context_line":"    did_stonith_resource_exist \u003d stonith_resource_exists?"},{"line_number":55,"context_line":"    Puppet.debug(\"Exists: stonith resource exists #{did_stonith_resource_exist} location exists #{did_stonith_location_exist}\")"},{"line_number":56,"context_line":"    if did_stonith_resource_exist and did_stonith_location_exist"},{"line_number":57,"context_line":"      return true"}],"source_content_type":"text/x-ruby","patch_set":2,"id":"9f5c4f37_d54e37c0","line":54,"range":{"start_line":53,"start_character":0,"end_line":54,"end_character":57},"in_reply_to":"9f5c4f37_bafe10ac","updated":"2017-09-21 09:09:16.000000000","message":"Right but I use them to print out in the debug statement below and I don\u0027t want to call the function twice as it is expensive","commit_id":"375ff165036d0b529b79876b273cc66566811d62"}]}
