It is not the right way to make the condition that if you get what you want you will be obedient and cheerful. But be always obedient and cheerful and then what you want will have a chance of coming to you.
Ref: Letters on Yoga Vol. II