When it comes to weight loss, what matters most is what we eat. Good nutrition is what takes the weight off and keeps it off. Exercise is what keeps our bodies fit and healthy. In general, for long term good health, a person should eat right and get some regular exercise. However, a person can lose weight without exercise as long as they are mindful of what they eat.
I wouldn't worry too much about trying to lose weight these next two weeks. Instead, do your best to eat foods that nourish your body. I wouldn't cut your calories without your doctor's okay. Why ? When you cut your calories, it means your body will have fewer calories (energy) to help heal your body if you have to have an operation to remove that cyst.
In theory, if you were to watch what you eat, you might lose 1-2 pounds without exercise in two weeks. Mind you, it doesn't mean you will lose. it's possible you could lose. You might even gain weight. And that doesn't mean you're doing anything wrong.
I would advise you to stay away from the scale for these two weeks. Don't tie your self worth to a number that stares at you from between your toes in the morning. You WILL NOT derail any of your efforts at good health and weight loss because you can't exercise for a couple of weeks.
Listen to the advice of your doctor. Do your best to eat as healthfully and mindfully as possible. The fact is, you need to heal your body first. Then you can think about weight loss.