{"action":"created","issue":{"url":"https://api.github.com/repos/jveldboom/php-aws-snapshots/issues/2","labels_url":"https://api.github.com/repos/jveldboom/php-aws-snapshots/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jveldboom/php-aws-snapshots/issues/2/comments","events_url":"https://api.github.com/repos/jveldboom/php-aws-snapshots/issues/2/events","html_url":"https://github.com/jveldboom/php-aws-snapshots/issues/2","id":85227116,"number":2,"title":"No snapshots if none exist?","user":{"login":"tjfoster","id":2520305,"avatar_url":"https://avatars.githubusercontent.com/u/2520305?v=3","gravatar_id":"","url":"https://api.github.com/users/tjfoster","html_url":"https://github.com/tjfoster","followers_url":"https://api.github.com/users/tjfoster/followers","following_url":"https://api.github.com/users/tjfoster/following{/other_user}","gists_url":"https://api.github.com/users/tjfoster/gists{/gist_id}","starred_url":"https://api.github.com/users/tjfoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjfoster/subscriptions","organizations_url":"https://api.github.com/users/tjfoster/orgs","repos_url":"https://api.github.com/users/tjfoster/repos","events_url":"https://api.github.com/users/tjfoster/events{/privacy}","received_events_url":"https://api.github.com/users/tjfoster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-04T18:51:34Z","updated_at":"2015-06-04T19:05:36Z","closed_at":null,"body":"Hello!\r\n\r\nThank you for this!  Makes it super easy!  Is there a reason why the script won't create snapshots if none exist?  I altered the code and was considering doing a pull request, but it occurred to me that you probably had a purpose for that. :)\r\n\r\nif(!$snapshots) {\r\n    self::create($volume_id,$this->options['description']);\r\n    continue;\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/jveldboom/php-aws-snapshots/issues/comments/109012589","html_url":"https://github.com/jveldboom/php-aws-snapshots/issues/2#issuecomment-109012589","issue_url":"https://api.github.com/repos/jveldboom/php-aws-snapshots/issues/2","id":109012589,"user":{"login":"jveldboom","id":303202,"avatar_url":"https://avatars.githubusercontent.com/u/303202?v=3","gravatar_id":"","url":"https://api.github.com/users/jveldboom","html_url":"https://github.com/jveldboom","followers_url":"https://api.github.com/users/jveldboom/followers","following_url":"https://api.github.com/users/jveldboom/following{/other_user}","gists_url":"https://api.github.com/users/jveldboom/gists{/gist_id}","starred_url":"https://api.github.com/users/jveldboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jveldboom/subscriptions","organizations_url":"https://api.github.com/users/jveldboom/orgs","repos_url":"https://api.github.com/users/jveldboom/repos","events_url":"https://api.github.com/users/jveldboom/events{/privacy}","received_events_url":"https://api.github.com/users/jveldboom/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T19:05:36Z","updated_at":"2015-06-04T19:05:36Z","body":"[This should](https://github.com/jveldboom/php-aws-snapshots/blob/master/snapshots.php#L19) only be false if the json returned from the AWS CLI is invalid or PHP was unable to [decode it here](https://github.com/jveldboom/php-aws-snapshots/blob/master/snapshots.php#L109).\r\n\r\nLooking at the code again from a pretty long break from it, I realized that is 100% not clear at all. So I'm open to suggestions or alternate ways to do this."}}