How did a cyber-attack lead to long queues for petrol in the US?

Across the eastern US, Americans are queuing up for petrol after a cyber-attack shut down operations for the country's biggest energy pipeline.