Changes

Jump to: navigation, search

OPS245 Lab 2

1 byte removed, 17:27, 17 September 2021
m
INVESTIGATION 4: USING PYTHON TO AUTOMATE MANAGING VIRTUAL MACHINES: - typo
<li>Now we have a script that asks the user if they want to back up all VMS, and if they say they do it does. But if they don't want to back up every VM, it currently does nothing.</li>
<li>Add an else statement to handle the user not wanting to back up every VM. Inside that else clause ask the user which VM they would like to back up (you can even give them the names of available VMs (Centos1, Centos2, Centos3).</li>
<li>Now nest and an if statement inside that else so that your script can handle what your user just responded with. If they asked for Centos1, back up Centos1. If they want to back up Centos2, only back up Centos2, etc. Hint: You might want to use elif for this.</li>
<li>Test your script again. You should now have a script that:<ul><li>Makes sure the user is running the script with elevated permissions.</li><li>Asks the user if they want to back up every VM.</li><li>If they want to back up every VM, it backs up every VM.</li><li>If they user does not want to back up every VM, the script asks them which VM they do want to back up.</li><li>If they user selected a single VM, the script will back up that one VM.</li></ul></li>
</ol>
932
edits

Navigation menu