{"action":"opened","issue":{"url":"https://api.github.com/repos/FoxxMD/laravel-elasticbeanstalk-cron/issues/5","repository_url":"https://api.github.com/repos/FoxxMD/laravel-elasticbeanstalk-cron","labels_url":"https://api.github.com/repos/FoxxMD/laravel-elasticbeanstalk-cron/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/FoxxMD/laravel-elasticbeanstalk-cron/issues/5/comments","events_url":"https://api.github.com/repos/FoxxMD/laravel-elasticbeanstalk-cron/issues/5/events","html_url":"https://github.com/FoxxMD/laravel-elasticbeanstalk-cron/issues/5","id":179672966,"number":5,"title":"Failing during initialisation. undefined offset","user":{"login":"bendubuisson","id":3079189,"avatar_url":"https://avatars.githubusercontent.com/u/3079189?v=3","gravatar_id":"","url":"https://api.github.com/users/bendubuisson","html_url":"https://github.com/bendubuisson","followers_url":"https://api.github.com/users/bendubuisson/followers","following_url":"https://api.github.com/users/bendubuisson/following{/other_user}","gists_url":"https://api.github.com/users/bendubuisson/gists{/gist_id}","starred_url":"https://api.github.com/users/bendubuisson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendubuisson/subscriptions","organizations_url":"https://api.github.com/users/bendubuisson/orgs","repos_url":"https://api.github.com/users/bendubuisson/repos","events_url":"https://api.github.com/users/bendubuisson/events{/privacy}","received_events_url":"https://api.github.com/users/bendubuisson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-28T03:38:55Z","updated_at":"2016-09-28T03:38:55Z","closed_at":null,"body":"So I get a ```[ErrorException]     \r\n  Undefined offset: 0```\r\n\r\nwhen deploying to EB.\r\n\r\nLooks like [https://github.com/FoxxMD/laravel-elasticbeanstalk-cron/blob/master/src/Console/AWS/ConfigureLeaderCommand.php#L53-L58](https://github.com/FoxxMD/laravel-elasticbeanstalk-cron/blob/master/src/Console/AWS/ConfigureLeaderCommand.php#L53-L58)\r\n\r\n```\r\n $tags = $info = $this->ecClient->describeInstances(['Filters' => [\r\n                    ['Name'   => 'instance-id',\r\n                     'Values' => [$result]\r\n                    ]\r\n                ]\r\n                                                                   ])->get('Reservations')[0]['Instances'][0]['Tags'];\r\n```\r\n\r\nis the issue. \r\n\r\nAny thoughts?"}}
{"actor":{"display_login":"bendubuisson"}}