{"action":"opened","issue":{"url":"https://api.github.com/repos/kemra102/yumserver-cookbook/issues/7","repository_url":"https://api.github.com/repos/kemra102/yumserver-cookbook","labels_url":"https://api.github.com/repos/kemra102/yumserver-cookbook/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/kemra102/yumserver-cookbook/issues/7/comments","events_url":"https://api.github.com/repos/kemra102/yumserver-cookbook/issues/7/events","html_url":"https://github.com/kemra102/yumserver-cookbook/issues/7","id":134072275,"number":7,"title":"if a repo name changes, cookbook cannot delete/ignore the extra repo name","user":{"login":"joshoohaah","id":8366405,"avatar_url":"https://avatars.githubusercontent.com/u/8366405?v=3","gravatar_id":"","url":"https://api.github.com/users/joshoohaah","html_url":"https://github.com/joshoohaah","followers_url":"https://api.github.com/users/joshoohaah/followers","following_url":"https://api.github.com/users/joshoohaah/following{/other_user}","gists_url":"https://api.github.com/users/joshoohaah/gists{/gist_id}","starred_url":"https://api.github.com/users/joshoohaah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshoohaah/subscriptions","organizations_url":"https://api.github.com/users/joshoohaah/orgs","repos_url":"https://api.github.com/users/joshoohaah/repos","events_url":"https://api.github.com/users/joshoohaah/events{/privacy}","received_events_url":"https://api.github.com/users/joshoohaah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-16T19:18:34Z","updated_at":"2016-02-16T19:18:34Z","closed_at":null,"body":"Stumbled across a new issue on 2.0.2 where if i changed the name of the repo name i'm mirroring it has issues doing `delete`.\r\nSee error message.\r\n```\r\n\r\n\r\n    ================================================================================\r\n    Error executing action `delete` on resource 'zap_directory[/etc/reposync.repos.d/]'\r\n    ================================================================================\r\n\r\n    Chef::Exceptions::ValidationFailed\r\n    ----------------------------------\r\n    yumserver_mirror[/etc/reposync.repos.d/epel7.repo] (dynamically defined) had an error: Chef::Exceptions::ValidationFailed: repo_name is required\r\n\r\n    Cookbook Trace:\r\n    ---------------\r\n    /var/chef/cache/cookbooks/yumserver/resources/mirror.rb:19:in `path'\r\n    /var/chef/cache/cookbooks/yumserver/resources/mirror.rb:66:in `block in class_from_file'\r\n    /var/chef/cache/cookbooks/zap/libraries/default.rb:149:in `block (2 levels) in iterate'\r\n    /var/chef/cache/cookbooks/zap/libraries/default.rb:145:in `each'\r\n    /var/chef/cache/cookbooks/zap/libraries/default.rb:145:in `block in iterate'\r\n    /var/chef/cache/cookbooks/zap/libraries/default.rb:144:in `iterate'\r\n    /var/chef/cache/cookbooks/zap/libraries/default.rb:110:in `action_delete'\r\n\r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /var/chef/cache/cookbooks/yumserver/recipes/default.rb\r\n\r\n     23: zap_directory '/etc/reposync.repos.d/' do\r\n     24:   klass [Chef::Resource::YumserverMirror, Chef::Resource::YumserverRsyncMirror]\r\n     25:   immediately true\r\n     26: end\r\n     27:\r\n\r\n    Compiled Resource:\r\n    ------------------\r\n    # Declared in /var/chef/cache/cookbooks/yumserver/recipes/default.rb:23:in `from_file'\r\n\r\n    zap_directory(\"/etc/reposync.repos.d/\") do\r\n      provider Chef::Provider::ZapDirectory\r\n      action :delete\r\n      retries 0\r\n      retry_delay 2\r\n      default_guard_interpreter :default\r\n      pattern \"*\"\r\n      filter #<Proc:0x000000046d9b98@/var/chef/cache/cookbooks/zap/libraries/default.rb:33 (lambda)>\r\n      klass [LWRP resource yumserver_mirror from cookbook yumserver, LWRP resource yumserver_rsync_mirror from cookbook yumserver]\r\n      declared_type :zap_directory\r\n      cookbook_name \"yumserver\"\r\n      recipe_name \"default\"\r\n      immediately true\r\n    end\r\n```"}}