Fixed missing parameter 'type' for update, renamed variable for it and fixed return codes

With the ga release of satellite 6 I get the following error:

```
ssh -l jenkins -i /var/lib/jenkins/.ssh/id_rsa satellite.example.com /usr/bin/hammer template update --id 40 --file kickstarts/subscription-snippet.erb
Could not update the config template:
  Template kind can't be blank
```

Also it is not a good idea to use "type" as a variable name as it is a bash builtin.
Could you replace the tab character with spaces?