{"action":"created","issue":{"url":"https://api.github.com/repos/cobbler/cobbler/issues/1656","repository_url":"https://api.github.com/repos/cobbler/cobbler","labels_url":"https://api.github.com/repos/cobbler/cobbler/issues/1656/labels{/name}","comments_url":"https://api.github.com/repos/cobbler/cobbler/issues/1656/comments","events_url":"https://api.github.com/repos/cobbler/cobbler/issues/1656/events","html_url":"https://github.com/cobbler/cobbler/issues/1656","id":149620886,"number":1656,"title":"\"$what\" Variable Not Set","user":{"login":"chimpchimp","id":7354572,"avatar_url":"https://avatars.githubusercontent.com/u/7354572?v=3","gravatar_id":"","url":"https://api.github.com/users/chimpchimp","html_url":"https://github.com/chimpchimp","followers_url":"https://api.github.com/users/chimpchimp/followers","following_url":"https://api.github.com/users/chimpchimp/following{/other_user}","gists_url":"https://api.github.com/users/chimpchimp/gists{/gist_id}","starred_url":"https://api.github.com/users/chimpchimp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chimpchimp/subscriptions","organizations_url":"https://api.github.com/users/chimpchimp/orgs","repos_url":"https://api.github.com/users/chimpchimp/repos","events_url":"https://api.github.com/users/chimpchimp/events{/privacy}","received_events_url":"https://api.github.com/users/chimpchimp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-20T00:41:17Z","updated_at":"2016-04-20T17:26:45Z","closed_at":"2016-04-20T17:26:45Z","body":"I'm trying to build Ubuntu 14.04 machines from a Cobbler install running on CentOS 7. The majority of the seed file seems to work except for the late_command function, which is set to call a script. It looks like the \"$what\" variable is failing to populate in the script URL:\r\n\r\n`http://$http_server/cblr/svc/op/script/$what/$name/?script=preseed_late_ansible`\r\n\r\nThe following error message is generated:\r\n\r\n```\r\n {'code': u'VFFSL(SL,\"what\",True)',\r\n  'exc_val': NotFound(u\"cannot find 'what'\",),\r\n  'lineCol': (57, 41),\r\n  'rawCode': u'$what',\r\n  'time': 'Tue Apr 19 17:04:17 2016'}\r\n```\r\n\r\nI can confirm the same behavior when manually loading the profile from http://cobbler_host/cblr/svc/op/ks/profile/ubuntu-trusty-x86_64\r\n\r\nIs there something else that needs to be set to ensure this gets populated correctly?"},"comment":{"url":"https://api.github.com/repos/cobbler/cobbler/issues/comments/212524048","html_url":"https://github.com/cobbler/cobbler/issues/1656#issuecomment-212524048","issue_url":"https://api.github.com/repos/cobbler/cobbler/issues/1656","id":212524048,"user":{"login":"chimpchimp","id":7354572,"avatar_url":"https://avatars.githubusercontent.com/u/7354572?v=3","gravatar_id":"","url":"https://api.github.com/users/chimpchimp","html_url":"https://github.com/chimpchimp","followers_url":"https://api.github.com/users/chimpchimp/followers","following_url":"https://api.github.com/users/chimpchimp/following{/other_user}","gists_url":"https://api.github.com/users/chimpchimp/gists{/gist_id}","starred_url":"https://api.github.com/users/chimpchimp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chimpchimp/subscriptions","organizations_url":"https://api.github.com/users/chimpchimp/orgs","repos_url":"https://api.github.com/users/chimpchimp/repos","events_url":"https://api.github.com/users/chimpchimp/events{/privacy}","received_events_url":"https://api.github.com/users/chimpchimp/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T17:26:45Z","updated_at":"2016-04-20T17:26:45Z","body":"I took another look at the sample seed file and found my answer.\r\n\r\n```\r\n## Figure out if we're kickstarting a system or a profile\r\n#if $getVar('system_name','') != ''\r\n#set $what = \"system\"\r\n#else\r\n#set $what = \"profile\"\r\n#end if\r\n```\r\n\r\nNot sure how I missed that one.\r\n"}}