Is there a template variable for content source?

Is there a variable for the hostname of the katello content source host that is selected in the hostgroup settings?

I know it is in @mediapath but I don’t want the whole url just the hostname and it would be nice if it was a variable and I didn’t have to extract it via a couple of string splits or something.

Hi @viwon

Does @mediaserver get you what you need? I haven’t tested it, but in the code I see this, which is promising:

@mediaserver = URI(@mediapath).host