Thanks for the suggestion Colin. It got me thinking.
There was actually nothing in /etc/yum.repos.d for “media” so I did a search for “media” and quickly realized that I had a read-only live usb key with server edition of fedora 25 inserted in a usb port on the pc. Once I took that out all was good.
Funny how that was causing the issue.