I'm 5'4 with a similar inseam. I have a 15' hardtail, and a size small full suspension bike. No way could I ride a 17'5. Can you even stand over the bike comfortably? Go back to the shop and speak to the manager. I find it amazing that they would have put you on that size of a bike.
Live with intention. Walk to the edge. Listen hard. Practice wellness. Play with abandon. Laugh. Choose with no regret. Continue to learn. Appreciate your friends. Do what you love. Live as if this is all there is.
--Mary Anne Radmacher