What is the meaning of [a foolish consistency is the hobgoblin of little minds]

A lack of flexibility in making judgments is regarded as a sign of petty narrow-mindedness.