{"action":"closed","issue":{"url":"https://api.github.com/repos/joel74/POSH-LTM-Rest/issues/76","repository_url":"https://api.github.com/repos/joel74/POSH-LTM-Rest","labels_url":"https://api.github.com/repos/joel74/POSH-LTM-Rest/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/joel74/POSH-LTM-Rest/issues/76/comments","events_url":"https://api.github.com/repos/joel74/POSH-LTM-Rest/issues/76/events","html_url":"https://github.com/joel74/POSH-LTM-Rest/issues/76","id":191397005,"number":76,"title":"Slow Import-Module Time (greater than 10 minutes) when using powershell 5","user":{"login":"fodonnel","id":2113774,"avatar_url":"https://avatars.githubusercontent.com/u/2113774?v=3","gravatar_id":"","url":"https://api.github.com/users/fodonnel","html_url":"https://github.com/fodonnel","followers_url":"https://api.github.com/users/fodonnel/followers","following_url":"https://api.github.com/users/fodonnel/following{/other_user}","gists_url":"https://api.github.com/users/fodonnel/gists{/gist_id}","starred_url":"https://api.github.com/users/fodonnel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fodonnel/subscriptions","organizations_url":"https://api.github.com/users/fodonnel/orgs","repos_url":"https://api.github.com/users/fodonnel/repos","events_url":"https://api.github.com/users/fodonnel/events{/privacy}","received_events_url":"https://api.github.com/users/fodonnel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-23T22:52:11Z","updated_at":"2016-12-16T15:15:04Z","closed_at":"2016-12-16T15:15:04Z","body":"I am using powershell V5\r\n\r\nThe code to Register argument completers  is causing a recursive load of the module.\r\nThis results in a load time that is greater than 10 minutes.\r\n\r\nI have added the following to the start of F5-LTM.psm1 \r\n    Write-Verbose \"$(get-date -f s) Module Load Called\"\r\n\r\nFrom that I can see that during the module load, it attempts to recursively load the module again. \r\n\r\nThis problem seems to be caused by the Register-ArgumentCompleter  code block in ArgumentCompletion.ps1. I have confirmed my removing that code and testing that the module loads correctly.\r\n\r\nI have tried wrapping the Register-ArgumentCompleter code block in a function and calling that as the end of F5-LTM.psm1 but it doesn't fix the problem.\r\n\r\n\r\n"}}
{"actor":{"display_login":"joel74"}}