1. 03 Feb, 2014 1 commit
  2. 09 Aug, 2013 1 commit
    • digital_ocean #3438: use get instead of [] to prevent KeyError · 0c9c4ae4
      The existing code was using:
        a[b][c[d]]
      where a[b] would always exist and c[d] would always exist.
      But the nested index would not alway exist, particularly when a DigitalOcean item disapeared.
      
      This changes that nested index to a `get` and properly handles None results.
      
      This bug was present in two spots in this file.
      Evan Wies committed
  3. 05 Jul, 2013 2 commits
  4. 02 Jul, 2013 1 commit
    • digital_ocean.py enhancements · 3f6bc3f6
      * Always refresh droplet information (versus getting it from cache) for
        --list, --host, --droplets, and --all.   All the DigitalOcean calls are
        pretty fast and without this change, inventory was often stale/incorrect.
        For example, previously if you destroyed a droplet, the inventory
        script would still find it and attempt to act on it.
      
      * Added --force-cache option
      
      * Added some option shortcuts -d, -r
      
      * Added more value sanitization
      Evan Wies committed
  5. 27 Jun, 2013 2 commits