Added support for hash type

http://projects.theforeman.org/issues/3831