lib/3scale_api/3scale/api.rb in 3scale_api-1.0.6 vs lib/3scale_api/3scale/api.rb in 3scale_api-1.0.7

- old
+ new

@@ -128,10 +128,10 @@ additional_fields.each do |key, value| params[key] = value end end response = @conn.post "/admin/api/signup.xml", params - return false = response.status != 201 + return false if response.status != 201 xml = Nokogiri::XML(response.body) account_id = xml.xpath('//account/id').first.text user_id = xml.xpath('//account/users/user/id').text self.approve_account account_id results = self.get_application_list account_id