1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

16 commits

Author SHA1 Message Date
Marc Seeger
57c6ce80cc Move Dynect endpoint from api2 to api-v4
I've had the problem before that Dynects api2 will fail when being called from a system that has both, IPv6 and IPv4 connectivity.
The message returned looks something like this:

```
@body="{\"status\": \"failure\", \"data\": {}, \"job_id\": 1234567890, \"msgs\": [{\"INFO\": \"login: IP address does not match current session\", \"SOURCE\": \"BLL\", \"ERR_CD\": \"INVALID_DATA\", \"LVL\": \"ERROR\"}, {\"INFO\": \"login: There was a problem with your credentials\", \"SOURCE\": \"BLL\", \"ERR_CD\": null, \"LVL\": \"INFO\"}]}", @status=400>
```

For our own (custom) library this was fixed by just moving from the 'api2.dynect.net' endpoint to 'api-v4.dynect.net'. We didn't change anything else and it just worked for us.
I just tried this locally and switching the endpoint solved the problem in fog for me.
2012-08-10 12:51:29 +03:00
Dan Peterson
0ff8733c65 [dynect|dns] Only JSON decode when Content-Type says so. Fixes job handling. 2012-08-03 13:20:30 -03:00
Dan Peterson
73467e71ea [dynect|dns] No more recursion when polling jobs. Raise an error if the body indicates failure. 2012-07-27 08:56:35 -03:00
Wesley Beary
8992b32d40 Merge pull request #905 from jherdman/remove-more-warnings
Remove more warnings
2012-05-28 09:42:06 -07:00
Dylan Egan
4bb008da1f Default to false for persistent connections. You can't pass in false. This now behaves like other connections in fog. ✌️ 2012-05-28 15:59:34 +02:00
James Herdman
97b16d08d2 Remove absolute path when requiring 2012-05-26 11:27:28 -04:00
Kevin Menard
dcefc2d7de Fixed #875: Loosen multi_json version. 2012-04-25 10:31:28 -04:00
Steve Smith
d89dd56fe7 Use MultiJSON #dump and #load rather than #encode and #decode
MultiJSON deprecated these methods in 1.3.0 in favour of the new ones.
This requires an update to the gemspec to ensure ~>1.3
2012-04-20 13:09:14 +01:00
Dan Peterson
7ba6df8f14 [dynect|dns] Automatically poll jobs if we get them. Closes #575 2011-11-07 22:46:07 -04:00
geemus
ffd01e51dd [core] pass connection_options through service init
closes #411
2011-09-12 10:01:56 -05:00
Dylan Egan
9b3eb02541 [dynect|dns] support reauth for inactivity logout too. 2011-09-09 11:36:28 -07:00
Dylan Egan
b71be90aa3 [dynect|dns] retry if auth_token was previously set and error message includes possible login expiration. 2011-09-08 14:25:22 -07:00
Dylan Egan
93a52e2c02 Merge pull request #492 from dylanegan/dynect_mocking
Dynect mocking
2011-09-01 10:27:10 -07:00
geemus
b2c8ff0388 [core] work toward separate requires
Should facilitate the following:

    require 'fog/aws'
    require 'fog/compute'
    require 'fog/aws/compute'

I think once you `require 'rubygems'` those should work.

further cleanup should reduce common requires (ie nokogiri)
2011-08-31 15:52:53 -05:00
Dylan Egan
c685a08c77 Beginning of Dynect::DNS mocking support. 2011-08-30 10:01:22 -07:00
geemus
96c117c580 [dns|dynect] move dynect dns to its own shared area (namespacing should probably be corrected) 2011-08-24 19:52:11 -05:00
Renamed from lib/fog/dns/dynect.rb (Browse further)