{"action":"reopened","issue":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/1299","repository_url":"https://api.github.com/repos/Flexget/Flexget","labels_url":"https://api.github.com/repos/Flexget/Flexget/issues/1299/labels{/name}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/1299/comments","events_url":"https://api.github.com/repos/Flexget/Flexget/issues/1299/events","html_url":"https://github.com/Flexget/Flexget/issues/1299","id":168044266,"number":1299,"title":"--cli-config only works in test mode","user":{"login":"cperezpenichet","id":1710206,"avatar_url":"https://avatars.githubusercontent.com/u/1710206?v=3","gravatar_id":"","url":"https://api.github.com/users/cperezpenichet","html_url":"https://github.com/cperezpenichet","followers_url":"https://api.github.com/users/cperezpenichet/followers","following_url":"https://api.github.com/users/cperezpenichet/following{/other_user}","gists_url":"https://api.github.com/users/cperezpenichet/gists{/gist_id}","starred_url":"https://api.github.com/users/cperezpenichet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cperezpenichet/subscriptions","organizations_url":"https://api.github.com/users/cperezpenichet/orgs","repos_url":"https://api.github.com/users/cperezpenichet/repos","events_url":"https://api.github.com/users/cperezpenichet/events{/privacy}","received_events_url":"https://api.github.com/users/cperezpenichet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Flexget/Flexget/labels/Bug","name":"Bug","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"liiight","id":4374581,"avatar_url":"https://avatars.githubusercontent.com/u/4374581?v=3","gravatar_id":"","url":"https://api.github.com/users/liiight","html_url":"https://github.com/liiight","followers_url":"https://api.github.com/users/liiight/followers","following_url":"https://api.github.com/users/liiight/following{/other_user}","gists_url":"https://api.github.com/users/liiight/gists{/gist_id}","starred_url":"https://api.github.com/users/liiight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liiight/subscriptions","organizations_url":"https://api.github.com/users/liiight/orgs","repos_url":"https://api.github.com/users/liiight/repos","events_url":"https://api.github.com/users/liiight/events{/privacy}","received_events_url":"https://api.github.com/users/liiight/received_events","type":"User","site_admin":false},"assignees":[{"login":"liiight","id":4374581,"avatar_url":"https://avatars.githubusercontent.com/u/4374581?v=3","gravatar_id":"","url":"https://api.github.com/users/liiight","html_url":"https://github.com/liiight","followers_url":"https://api.github.com/users/liiight/followers","following_url":"https://api.github.com/users/liiight/following{/other_user}","gists_url":"https://api.github.com/users/liiight/gists{/gist_id}","starred_url":"https://api.github.com/users/liiight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liiight/subscriptions","organizations_url":"https://api.github.com/users/liiight/orgs","repos_url":"https://api.github.com/users/liiight/repos","events_url":"https://api.github.com/users/liiight/events{/privacy}","received_events_url":"https://api.github.com/users/liiight/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2016-07-28T08:50:11Z","updated_at":"2016-09-27T08:49:48Z","closed_at":null,"body":"### Expected behaviour:\r\n\r\nPassing configuration parameters to `flexget execute` from the command line with `--cli-config` should work in normal (non-test) mode. The values passed through the command line should be replaced in the configuration variables the same way the are in test mode.\r\n\r\n### Actual behaviour:\r\n\r\nIt works as expected as long as the `--test` flag is used. Without the `--test` flag variables in the configuration are not replaced by the values passed with `--cli-config`, instead, the literal variable name is used, i.e. `$variable`. \r\n\r\n### Steps to reproduce:\r\n- Step 1: Using the minimal configuration below.\r\n- Step 2: To observe correct behaviour execute in test mode: \r\n\r\n`flexget --test execute --tasks test --cli-config variable=foobar -v --dump`\r\n- Step 3: To observe incorrect behaviour execute in normal mode:\r\n\r\n`flexget execute --tasks test --cli-config variable=foobar -v --dump`\r\n\r\n\r\n#### Config:\r\n```\r\ntasks:\r\n  test:\r\n    mock:\r\n      - title: $variable\r\n```\r\n  \r\n#### Log:\r\n##### Test mode log: \r\nThe output is as expected. See how $variable is evaluated to 'foobar' in the entry title:\r\n```\r\n2016-07-28 10:27 INFO     manager                       Test mode, creating a copy from database ...\r\n2016-07-28 10:27 INFO     manager                       Test database created\r\n2016-07-28 10:27 VERBOSE  task_queue                    There are 1 tasks to execute. Shutdown will commence when they have completed.\r\n2016-07-28 10:27 VERBOSE  details       test            Produced 1 entries.\r\n2016-07-28 10:27 WARNING  task          test            Task does not have any filter plugins to accept entries. You need at least one to accept the entries you  want.\r\n2016-07-28 10:27 VERBOSE  details       test            Summary - Accepted: 0 (Rejected: 0 Undecided: 1 Failed: 0)\r\n2016-07-28 10:27 WARNING  task          test            Task doesn't have any output plugins, you should add (at least) one!\r\n-- Undecided: --------------------------\r\ntitle            : foobar\r\nurl              : mock://localhost/mock/3433925302934160649\r\noriginal_url     : mock://localhost/mock/3433925302934160649\r\nquality          : <LazyField - value will be determined when it is accessed>\r\ntask             : test\r\n\r\n2016-07-28 10:27 VERBOSE  verbose       test            UNDECIDED: `foobar`\r\n2016-07-28 10:27 VERBOSE  verbose       test            Undecided entries have not been accepted or rejected. If you expected these to reach output, you must set up filter plugin(s) to accept them.\r\n2016-07-28 10:27 INFO     manager                       Removed test database\r\n```\r\n##### Normal mode log:\r\nIncorrect behaviour. $variable is not evaluated in the entry title:\r\n```\r\nThere is a FlexGet process already running for this config, sending execution there.\r\n2016-07-28 10:32 VERBOSE  details       test            Produced 1 entries.\r\n2016-07-28 10:32 WARNING  task          test            Task does not have any filter plugins to accept entries. You need at least one to accept the entries you  want.\r\n2016-07-28 10:32 VERBOSE  details       test            Summary - Accepted: 0 (Rejected: 0 Undecided: 1 Failed: 0)\r\n2016-07-28 10:32 WARNING  task          test            Task doesn't have any output plugins, you should add (at least) one!\r\n-- Undecided: --------------------------\r\ntitle            : $variable\r\nurl              : mock://localhost/mock/3088942986836962869\r\noriginal_url     : mock://localhost/mock/3088942986836962869\r\nquality          : <LazyField - value will be determined when it is accessed>\r\ntask             : test\r\n\r\n2016-07-28 10:32 VERBOSE  verbose       test            UNDECIDED: `$variable`\r\n2016-07-28 10:32 VERBOSE  verbose       test            Undecided entries have not been accepted or rejected. If you expected these to reach output, you must set up filter plugin(s) to accept them.\r\n``` \r\n\r\n### Additional information:\r\n\r\n- Flexget Version: 2.2.0\r\n- Python Version: 2.7.6\r\n- Installation method: pip\r\n- OS and version: Ubuntu 14.04.4\r\n"}}
{"actor":{"display_login":"liiight"}}